Browse Source

Merge pull request #541 from LN-Zap/fix/require-wallet-type

fix(wallet-type): ensure a user selects a wallet type
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
3c316d8d4d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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"}
description="Would you like to create a new wallet or import an existing one?"
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} />
</FormContainer>

Loading…
Cancel
Save