File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,12 @@ export const CreatePollContent = () => {
164164 { t < string > ( 'Multiple answers' ) }
165165 </ Text >
166166 < Switch
167- onValueChange = { ( ) => setMultipleAnswersAllowed ( ! multipleAnswersAllowed ) }
167+ onValueChange = { ( ) => {
168+ if ( multipleAnswersAllowed ) {
169+ setMaxVotesPerPersonEnabled ( false ) ;
170+ }
171+ setMultipleAnswersAllowed ( ! multipleAnswersAllowed ) ;
172+ } }
168173 value = { multipleAnswersAllowed }
169174 />
170175 </ View >
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export const updatePollMessage = <
3535 for ( const pollFromDB of pollsFromDB ) {
3636 const serializedPoll = mapStorableToPoll ( pollFromDB ) ;
3737 const { latest_answers = [ ] , own_votes = [ ] } = serializedPoll ;
38- console . log ( eventType ) ;
3938 let newOwnVotes = own_votes ;
4039 if ( poll_vote && poll_vote . user ?. id === userID ) {
4140 newOwnVotes =
You can’t perform that action at this time.
0 commit comments