Skip to content

Commit

Permalink
Updating the resume code
Browse files Browse the repository at this point in the history
Signed-off-by: Sakshi Bobade <[email protected]>
  • Loading branch information
sakshibobade21 committed Aug 7, 2024
1 parent 21692a6 commit c1d74f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/renderer/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -223,12 +222,11 @@ const Home = () => {

if(connectionStatus) {
setShowPasswordDialog(true);
setUpdatedConnection(false);
}
}

const confirmConnection = (status: boolean) => {
setUpdatedConnection(status);
setShowPasswordDialog(!status);
setShowWizard(status);
}

Expand Down Expand Up @@ -272,7 +270,6 @@ const Home = () => {
{showWizard &&
<>
{showPasswordDialog && <PasswordDialog onPasswordSubmit={confirmConnection}></PasswordDialog>}
{(showPasswordDialog && updatedConnection) && <Wizard initialization={isNewInstallation}/>}
{!showPasswordDialog && <Wizard initialization={isNewInstallation}/>}
</>
}
Expand Down

0 comments on commit c1d74f4

Please sign in to comment.