From 077fc5eab6a835c687360b3935cfd394fd9f1cea Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 5 Apr 2018 11:40:59 -0230 Subject: [PATCH] Disable the first time flow import button while isLoading is true. --- mascara/src/app/first-time/import-seed-phrase-screen.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mascara/src/app/first-time/import-seed-phrase-screen.js b/mascara/src/app/first-time/import-seed-phrase-screen.js index 86f02ceac..ba44ff91f 100644 --- a/mascara/src/app/first-time/import-seed-phrase-screen.js +++ b/mascara/src/app/first-time/import-seed-phrase-screen.js @@ -76,8 +76,9 @@ class ImportSeedPhraseScreen extends Component { render () { const { seedPhrase, password, confirmPassword } = this.state - const { warning } = this.props - const importDisabled = warning || !seedPhrase || !password || !confirmPassword + const { warning, isLoading } = this.props + const importDisabled = warning || !seedPhrase || !password || !confirmPassword || isLoading + return (
@@ -152,7 +153,7 @@ class ImportSeedPhraseScreen extends Component { } export default connect( - ({ appState: { warning } }) => ({ warning }), + ({ appState: { warning, isLoading } }) => ({ warning, isLoading }), dispatch => ({ leaveImportSeedScreenState: () => { dispatch(unMarkPasswordForgotten())