Skip to content

Commit

Permalink
dont move user to dash if logged in
Browse files Browse the repository at this point in the history
cuz btn for that exists now
  • Loading branch information
probablyjassin committed Nov 14, 2024
1 parent f4e3698 commit ade0c9f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions middleware/isLoggedIn.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ade0c9f

Please sign in to comment.