1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Small fixes

This commit is contained in:
Zhiyuan Zheng
2021-03-27 00:47:14 +01:00
parent 516bb1e67d
commit 80e23d8a31
3 changed files with 21 additions and 9 deletions

View File

@ -229,7 +229,7 @@ const TimelinePoll: React.FC<Props> = ({
style={styles.optionContainer}
onPress={() => {
analytics('timeline_shared_vote_option_press')
haptics('Light')
!allOptions[index] && haptics('Light')
if (poll.multiple) {
setAllOptions(allOptions.map((o, i) => (i === index ? !o : o)))
} else {