From 172a9a0d565bcd46e7021070d182784222bc3f5a Mon Sep 17 00:00:00 2001 From: Erallie <31375589+Erallie@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:04:14 -0700 Subject: [PATCH] changed let to const where applicable --- main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index c374c25..48b875b 100644 --- a/main.ts +++ b/main.ts @@ -324,8 +324,7 @@ class TimestampModal extends Modal { timezone.onchange = (ev: Event) => { const offset = (ev.target as HTMLInputElement).value; - - let date = moment.tz(input.value, moment.ISO_8601, offset) + const date = moment.tz(input.value, moment.ISO_8601, offset) setClickEvents(date); } @@ -404,7 +403,7 @@ class TimestampModal extends Modal { input.onchange = (ev: Event) => { const value = (ev.target as HTMLInputElement).value; const offset = timezone.value; - let date = moment.tz(value, moment.ISO_8601, offset) + const date = moment.tz(value, moment.ISO_8601, offset) setClickEvents(date); }