1
0
mirror of https://github.com/tooot-app/app synced 2025-02-03 20:07:52 +01:00

Fix poll 5 minutes un-selectable

This commit is contained in:
Zhiyuan Zheng 2022-05-01 00:18:18 +02:00
parent 902d4e6c3a
commit 829a25b76b

View File

@ -216,7 +216,7 @@ const ComposePoll: React.FC = () => {
userInterfaceStyle: mode
},
index => {
if (index && index < expirations.length) {
if (index !== undefined && index < expirations.length) {
analytics('compose_poll_expiration_press', {
current: expire,
new: expirations[index]