From 80a57d350c7659d77130d24dbac369cef806c4cb Mon Sep 17 00:00:00 2001 From: Sean Rabaut Date: Fri, 14 Sep 2018 15:45:21 -0400 Subject: Improvement: Allow enter to submit password form --- mascara/src/app/first-time/create-password-screen.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mascara/src/app/first-time/create-password-screen.js') diff --git a/mascara/src/app/first-time/create-password-screen.js b/mascara/src/app/first-time/create-password-screen.js index 6b284f7c5..0908787da 100644 --- a/mascara/src/app/first-time/create-password-screen.js +++ b/mascara/src/app/first-time/create-password-screen.js @@ -63,7 +63,9 @@ class CreatePasswordScreen extends Component { return password === confirmPassword } - createAccount = () => { + createAccount = (event) => { + event.preventDefault() + if (!this.isValid()) { return } @@ -127,7 +129,7 @@ class CreatePasswordScreen extends Component { It allows you to hold ether & tokens, and interact with decentralized applications. } -
+
Create Password
@@ -188,7 +190,7 @@ class CreatePasswordScreen extends Component { { */ } -
+ ) -- cgit