From c1d74f463388b99fc8293574115780d4ad124927 Mon Sep 17 00:00:00 2001 From: Sakshi Bobade Date: Wed, 7 Aug 2024 13:51:05 +0530 Subject: [PATCH] Updating the resume code Signed-off-by: Sakshi Bobade --- src/renderer/components/Home.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/renderer/components/Home.tsx b/src/renderer/components/Home.tsx index 42eba4d1..50dc8a09 100644 --- a/src/renderer/components/Home.tsx +++ b/src/renderer/components/Home.tsx @@ -83,7 +83,6 @@ const Home = () => { const defaultTooltip: string = "Resume"; const resumeTooltip = connectionStatus ? defaultTooltip : `Validate Credentials & ${defaultTooltip}`; const [showPasswordDialog, setShowPasswordDialog] = useState(false); - const [updatedConnection, setUpdatedConnection] = useState(false); const [isResume, setIsResume] = useState(useAppSelector(selectResumeProgress)); const makeCard = (card: ICard) => { @@ -223,12 +222,11 @@ const Home = () => { if(connectionStatus) { setShowPasswordDialog(true); - setUpdatedConnection(false); } } const confirmConnection = (status: boolean) => { - setUpdatedConnection(status); + setShowPasswordDialog(!status); setShowWizard(status); } @@ -272,7 +270,6 @@ const Home = () => { {showWizard && <> {showPasswordDialog && } - {(showPasswordDialog && updatedConnection) && } {!showPasswordDialog && } }