From e4cd5e2048e586a5c6950933ce0aaaccb20d9c01 Mon Sep 17 00:00:00 2001 From: MC2b6 Date: Mon, 4 Nov 2024 20:25:56 -0600 Subject: [PATCH] fix(Header): fix confirmation dialogue staying open --- src/components/common/Header.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/Header.jsx b/src/components/common/Header.jsx index 970440e..88f01cc 100644 --- a/src/components/common/Header.jsx +++ b/src/components/common/Header.jsx @@ -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?"