🔧 fix: consistent use of === and !==

This commit is contained in:
Jörn-Michael Miehe 2025-12-04 18:54:35 +00:00
parent 82da2f6171
commit 835bf0345a
3 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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);
}