Skip to content

Commit

Permalink
fix(Header): fix confirmation dialogue staying open (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
marycaserio authored Nov 5, 2024
1 parent 4e31a55 commit a88668b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const Header = () => {
open={openConfirmDialog}
onClose={() => setOpenConfirmDialog(false)}
onConfirm={async () => {
navigate('/');
setOpenConfirmDialog(false);
await handleSignOut();
onClose();
navigate('/');
}}
title="Confirm Sign Out"
description="Are you sure you want to sign out?"
Expand Down

0 comments on commit a88668b

Please sign in to comment.