mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2025-12-06 16:42:59 +00:00
🔧 fix: consistent use of === and !==
This commit is contained in:
parent
82da2f6171
commit
835bf0345a
3 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue