diff --git a/app/soapbox/features/compose/components/polls/duration-selector.tsx b/app/soapbox/features/compose/components/polls/duration-selector.tsx index 491530d22..10027824e 100644 --- a/app/soapbox/features/compose/components/polls/duration-selector.tsx +++ b/app/soapbox/features/compose/components/polls/duration-selector.tsx @@ -27,7 +27,7 @@ const DurationSelector = ({ onDurationChange }: IDurationSelector) => { now.setMinutes(now.getMinutes() + minutes); now.setHours(now.getHours() + hours); - return (now - future) / 1000; + return Math.round((now - future) / 1000); }, [days, hours, minutes]); useEffect(() => {