From a29d89cef089b4e88392610ddaab100e1f4a0566 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 30 Mar 2025 23:14:22 +0200 Subject: [PATCH] fix(frontend): Logica fout in refactoren --- frontend/src/App.vue | 6 ++++-- frontend/src/queries/themes.ts | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 801f5c7f..4b885403 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -5,13 +5,15 @@ import { computed } from "vue"; const route = useRoute(); - await auth.loadUser(); - interface RouteMeta { requiresAuth?: boolean; } const showMenuBar = computed(() => (route.meta as RouteMeta).requiresAuth && auth.authState.user); + + auth.loadUser().catch((_error) => { + // TODO Could not load user! + });