From 829a25b76b1f1fdf9ca451d838093914a1a34536 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sun, 1 May 2022 00:18:18 +0200 Subject: [PATCH] Fix poll 5 minutes un-selectable --- src/screens/Compose/Root/Footer/Poll.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Compose/Root/Footer/Poll.tsx b/src/screens/Compose/Root/Footer/Poll.tsx index 1c5b9b98..9b0445a5 100644 --- a/src/screens/Compose/Root/Footer/Poll.tsx +++ b/src/screens/Compose/Root/Footer/Poll.tsx @@ -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]