Merge branch 'fix-test' into 'develop'

Ensure whole number

See merge request soapbox-pub/soapbox-fe!1519
chats-fixes
Justin 2022-06-09 20:55:30 +00:00
commit f00b6db9d7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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(() => {