Browse Source

fix(wallet-type): ensure a user selects a wallet type

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
ecc7988c72
  1. 12
      app/components/Onboarding/Onboarding.js

12
app/components/Onboarding/Onboarding.js

@ -146,7 +146,17 @@ const Onboarding = ({
title={"Alright, let's get set up"} title={"Alright, let's get set up"}
description="Would you like to create a new wallet or import an existing one?" description="Would you like to create a new wallet or import an existing one?"
back={() => changeStep(4)} back={() => changeStep(4)}
next={() => changeStep(initWalletProps.signupProps.signupForm.create ? 6 : 5.1)} next={() => {
// require the user to select create wallet or import wallet
if (
!initWalletProps.signupProps.signupForm.create &&
!initWalletProps.signupProps.signupForm.import
) {
return
}
changeStep(initWalletProps.signupProps.signupForm.create ? 6 : 5.1)
}}
> >
<Signup {...initWalletProps.signupProps} /> <Signup {...initWalletProps.signupProps} />
</FormContainer> </FormContainer>

Loading…
Cancel
Save