🐛 Correct DeepScan issue.

This commit is contained in:
Chris Nielsen 2023-06-08 23:37:57 +00:00
parent 7280820ba5
commit f46bcc2edd

View File

@ -153,7 +153,7 @@ export const getTimeDifference = (startTime, endTime) => {
];
for (let idx = 0; idx < periods.length; idx += 1) {
if (diff < periods[idx + 1]?.value ?? Infinity) {
if (diff < (periods[idx + 1]?.value ?? Infinity)) {
const period = periods[idx];
const value = divide(diff, period.value);
const noun = value === 1 ? period.noun : `${period.noun}s`;