mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Disable the first time flow import button while isLoading is true.
This commit is contained in:
parent
1153120fe8
commit
077fc5eab6
@ -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 (
|
||||
<div className="first-view-main-wrapper">
|
||||
<div className="first-view-main">
|
||||
@ -152,7 +153,7 @@ class ImportSeedPhraseScreen extends Component {
|
||||
}
|
||||
|
||||
export default connect(
|
||||
({ appState: { warning } }) => ({ warning }),
|
||||
({ appState: { warning, isLoading } }) => ({ warning, isLoading }),
|
||||
dispatch => ({
|
||||
leaveImportSeedScreenState: () => {
|
||||
dispatch(unMarkPasswordForgotten())
|
||||
|
Loading…
Reference in New Issue
Block a user