diff --git a/ui/src/App.vue b/ui/src/App.vue index 9c1efab..566903a 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -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!") } } } diff --git a/ui/src/components/MultiModal.vue b/ui/src/components/MultiModal.vue index d78a87a..a3825dd 100644 --- a/ui/src/components/MultiModal.vue +++ b/ui/src/components/MultiModal.vue @@ -41,7 +41,6 @@ export default class extends Vue { public show_progress() { this.progress = true; - this.image_src = ""; this.set_active(true); } }