Skip to content

Commit

Permalink
fix: clear profile from redux when not authenticated
Browse files Browse the repository at this point in the history
KK-1139
  • Loading branch information
nikomakela committed May 2, 2024
1 parent e055eac commit 882604f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/profile/ProfileProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function ProfileProvider({
}, [fetchProfile, isLoginReady]);

React.useEffect(() => {
if (reduxStorageProfile?.id && !isAuthenticated) {
if (reduxStorageProfile?.id && !isAuthenticated()) {
// eslint-disable-next-line no-console
console.info('Clearing profile from redux');
clearProfileFromRedux();
Expand Down

0 comments on commit 882604f

Please sign in to comment.