Skip to content

Commit

Permalink
fix: close dialog after logging out (#673)
Browse files Browse the repository at this point in the history
Co-authored-by: Dunsin <[email protected]>
  • Loading branch information
malakbenr and Dun-sin authored Aug 19, 2024
1 parent dbec99c commit 4ee0b25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const NavBar = () => {
dispatchAuth({
type: 'LOGOUT',
});
logout();
setDialog({ isOpen: false });
logout();
}

const handleLogout = () => {
Expand Down

0 comments on commit 4ee0b25

Please sign in to comment.