From 835bf0345adbecb5af842002ff3323b37f74b9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 4 Dec 2025 18:54:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20consistent=20use=20of=20`?= =?UTF-8?q?=3D=3D=3D`=20and=20`!=3D=3D`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/LoginModal.vue | 4 ++-- ui/src/components/MultiModal.vue | 2 +- ui/src/components/admin/ConfigView.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/components/LoginModal.vue b/ui/src/components/LoginModal.vue index b2d0612..51171af 100644 --- a/ui/src/components/LoginModal.vue +++ b/ui/src/components/LoginModal.vue @@ -66,8 +66,8 @@ export default class extends Vue { public password = ""; private on_keydown(e: KeyboardEvent) { - if (e.key == "Enter") this.submit(); - else if (e.key == "Escape") this.cancel(); + if (e.key === "Enter") this.submit(); + else if (e.key === "Escape") this.cancel(); } public mounted(): void { diff --git a/ui/src/components/MultiModal.vue b/ui/src/components/MultiModal.vue index 1ed1a5b..9c80354 100644 --- a/ui/src/components/MultiModal.vue +++ b/ui/src/components/MultiModal.vue @@ -38,7 +38,7 @@ export default class extends Vue { public caption = ""; private on_keydown(e: KeyboardEvent) { - if (e.key == "Escape") this.dismiss(); + if (e.key === "Escape") this.dismiss(); } public created(): void { diff --git a/ui/src/components/admin/ConfigView.vue b/ui/src/components/admin/ConfigView.vue index b91722b..50f91c3 100644 --- a/ui/src/components/admin/ConfigView.vue +++ b/ui/src/components/admin/ConfigView.vue @@ -241,7 +241,7 @@ let ui_credentials: Credentials = ["", ""]; function fmt_puzzle_date(name: keyof AdminConfigModel["puzzle"]): string { const iso_date = admin_config_model.puzzle[name]; - if (!(typeof iso_date == "string")) return "-"; + if (!(typeof iso_date === "string")) return "-"; return DateTime.fromISO(iso_date).toLocaleString(DateTime.DATE_SHORT); }