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]