From ade0c9f54127964fde4032c60d225993831adc47 Mon Sep 17 00:00:00 2001 From: s5002669 Date: Thu, 14 Nov 2024 10:17:49 +0100 Subject: [PATCH] dont move user to dash if logged in cuz btn for that exists now --- middleware/isLoggedIn.global.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/middleware/isLoggedIn.global.ts b/middleware/isLoggedIn.global.ts index 37b7a56..0d56dcf 100644 --- a/middleware/isLoggedIn.global.ts +++ b/middleware/isLoggedIn.global.ts @@ -3,12 +3,6 @@ export default defineNuxtRouteMiddleware(async (to, from) => { const isLoggedIn = useState("isLoggedIn", (() => false) as () => boolean) - if (["/", "/hash", "/login"].includes(to.fullPath)) { - if (isLoggedIn.value) { - return navigateTo("/dash") - } - } - if (!to.fullPath.includes("dash")) { return true }