Skip to content

Commit

Permalink
Fix FTUE
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Aug 6, 2024
1 parent 58c4f44 commit 66888fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ router.beforeEach((to, from) => {
}
}

if (toMeta?.isPublic && !['setup', 'contact', 'undefined'].includes(String(to.name))) {
if (!toMeta?.isPublic && !['setup', 'contact', 'undefined'].includes(String(to.name))) {
const user = useUserStore();
if (user && user.data?.email && !user.data.isSetup) {
return { ...to, name: 'setup' };
Expand Down

0 comments on commit 66888fd

Please sign in to comment.