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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
1 deletions
-
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> |
|
|
|