Skip to content

Commit

Permalink
disable back button if exists userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikos-koukis committed Oct 19, 2023
1 parent 6197699 commit 7b88b82
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/views/Home/components/NewUserForm/NewUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ function NewUserForm({ email, userGid, setClickedSubmit }: NewUserFormProps) {
{index === 2 && userInfo && !isLoadingUserInfo &&
<ViewWallet userInfo={userInfo} isLoadingUserInfo={isLoadingUserInfo} jsonPrettyData={jsonPrettyData} />
}
{index === 3 && !isLoadingUserInfo &&
<Text>
Connect
</Text>
}
</Heading>
</Box>
</Step>
Expand All @@ -155,7 +150,7 @@ function NewUserForm({ email, userGid, setClickedSubmit }: NewUserFormProps) {
Connect Wallet
</Button>
)}
{activeStep > 0 && isLastStep && (
{activeStep > 0 && isLastStep && !userInfo && (
<Button size="sm" onClick={() => handlePreviousStep()}>
Back
</Button>
Expand Down

0 comments on commit 7b88b82

Please sign in to comment.