From 188513de70c4580af72497f138b8aa6ada5502f7 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 11 Sep 2024 20:16:33 +0100 Subject: [PATCH] stupid eslint --- src/app/common/time-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);