Fixed inproper conversion of secondsToMs

This commit is contained in:
Alex Kim
2024-10-28 21:46:46 +11:00
parent 0f178a502b
commit 0bc7bbed5a

View File

@@ -93,7 +93,7 @@ export const ticksToMs = (ticks?: number | undefined) => {
export const secondsToMs = (seconds?: number | undefined) => {
if (!seconds) return 0;
return seconds * 1000;
return Math.floor(seconds * 1000);
};
export const msToSeconds = (ms?: number | undefined) => {