From ecc7988c722bed52aea9d92eca0677ea98720fb1 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 6 Jul 2018 23:20:53 -0500 Subject: [PATCH] fix(wallet-type): ensure a user selects a wallet type --- app/components/Onboarding/Onboarding.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/components/Onboarding/Onboarding.js b/app/components/Onboarding/Onboarding.js index 3c12b89f..750fd4eb 100644 --- a/app/components/Onboarding/Onboarding.js +++ b/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) + }} >