Skip to content

Commit

Permalink
remove stored state if no authCode
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwarz2030 committed Jul 19, 2023
1 parent 19da6ae commit 35b323f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/CheckForToken/CheckForToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const CheckForToken = ({ children }) => {
}

return;
} else {
localStorage.removeItem('state');
}
}, [authCode]);

Expand Down

0 comments on commit 35b323f

Please sign in to comment.