Merge branch 'fix-test' into 'develop'

Ensure whole number

See merge request soapbox-pub/soapbox-fe!1519
environments/review-develop-3zknud/deployments/239
Justin 2 years ago
commit f00b6db9d7

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

Loading…
Cancel
Save