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
1 changed files with 1 additions and 1 deletions

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]