diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 9ce6b69..c727532 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -34,7 +34,13 @@ const toast = useNotifier(); const pageForm = useRouteHash(PageForms.Login); - const pageFormStr = computed(() => (pageForm.value[0] === "#" ? pageForm.value.slice(1) : pageForm.value)); + const pageFormStr = computed(() => { + if (!pageForm.value) { + return PageForms.Login; + } + + return pageForm.value[0] === "#" ? pageForm.value.slice(1) : pageForm.value; + }); const route = useRoute(); const router = useRouter();