Skip to content

Commit

Permalink
updating hasVisitedPage local storage removal
Browse files Browse the repository at this point in the history
  • Loading branch information
togetherAll7 committed Apr 30, 2024
1 parent b01e827 commit 3e9c36c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const Navigation = () => {
});

router.push('/');
if (state.loggedInUser.role !== 'client') {
localStorage.removeItem('hasVisitedPage');
}
} catch (error) {
console.error('Error signing out:', error);
}
Expand Down

0 comments on commit 3e9c36c

Please sign in to comment.