Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -32,7 +32,7 @@ export function calculateSecondsBetween(
|
|||||||
start: number,
|
start: number,
|
||||||
end: number,
|
end: number,
|
||||||
): { seconds: number; toReadable: (roundToMinutes?: boolean) => string } {
|
): { seconds: number; toReadable: (roundToMinutes?: boolean) => string } {
|
||||||
const seconds = (end - start) / 1000;
|
const seconds = Math.max(60, (end - start) / 1000);
|
||||||
return {
|
return {
|
||||||
seconds,
|
seconds,
|
||||||
toReadable: (roundToMinutes?: boolean) =>
|
toReadable: (roundToMinutes?: boolean) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user