Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
fix: удаление из localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
ko22009 committed Nov 9, 2023
1 parent b6820c3 commit 4ae5874
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/providers/layout/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
.then((res) => {
if (!res) {
setAuth(null);
localStorage.removeItem('user_id');
}
})
.catch(() => {
Expand Down

0 comments on commit 4ae5874

Please sign in to comment.