sforkowany z mirror/soapbox
Merge branch 'fix-test' into 'develop'
Ensure whole number See merge request soapbox-pub/soapbox-fe!1519chats-fixes
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(() => {
|
||||
|
|
Ładowanie…
Reference in New Issue