be a bit safer

This commit is contained in:
Jörn-Michael Miehe 2023-09-06 23:18:55 +00:00
parent d26a75ebcc
commit 9f3339240f
2 changed files with 6 additions and 3 deletions

View file

@ -73,8 +73,12 @@ export default class extends Vue {
public abort_calendar_door(name: string, reason: unknown) {
this.$refs.multi_modal.set_active(false);
if ((reason as AxiosError).response?.status == 401) {
alert("Nice try!")
if (
(reason instanceof AxiosError)
&& (reason.response !== undefined)
&& (reason.response.status === 401)
) {
alert("Netter Versuch!")
}
}
}

View file

@ -41,7 +41,6 @@ export default class extends Vue {
public show_progress() {
this.progress = true;
this.image_src = "";
this.set_active(true);
}
}