Skip to content

Commit

Permalink
changed let to const where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
Erallie committed Dec 5, 2024
1 parent 0bf1011 commit 172a9a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 172a9a0

Please sign in to comment.