From 2231c54f219193c127622be96487e48c6bacec79 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 24 May 2024 20:00:04 -0500 Subject: [PATCH] fix erroro --- frontend/pages/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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();