Merge branch 'fix-test' into 'develop'
Ensure whole number See merge request soapbox-pub/soapbox-fe!1519
This commit is contained in:
commit
f00b6db9d7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue