diff --git a/src/app/common/time-utils.ts b/src/app/common/time-utils.ts index a62cb2f..542fa7d 100644 --- a/src/app/common/time-utils.ts +++ b/src/app/common/time-utils.ts @@ -17,7 +17,7 @@ export function timeAgo(input: Date | number) { second: 1, }; const secondsElapsed = (date.getTime() - Date.now()) / 1000; - for (let key in ranges) { + for (const key in ranges) { if (ranges[key] < Math.abs(secondsElapsed)) { const delta = secondsElapsed / ranges[key]; return formatter.format(Math.round(delta), key as Intl.RelativeTimeFormatUnit);