fix(frontend): Logica fout in refactoren

This commit is contained in:
Tibo De Peuter 2025-03-30 23:14:22 +02:00
parent 588c556949
commit a29d89cef0
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 8 additions and 6 deletions

View file

@ -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!
});
</script>
<template>