Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit ae913f3

Browse files
committed
fixes bug where users couldn't continue if password was wrong
1 parent aec9f96 commit ae913f3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/js/profiles/RenewNamePage.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RenewNamePage extends Component {
6262

6363
estimateRenewal = async (evt) => {
6464
evt.preventDefault()
65-
this.setState({ estimateInProgress: true })
65+
this.setState({ estimateInProgress: true, error: null })
6666
const { network } = config
6767
const { password } = this.state
6868
const { encryptedBackupPhrase } = this.props
@@ -79,7 +79,8 @@ class RenewNamePage extends Component {
7979
)
8080
} catch (error) {
8181
this.setState({
82-
error: 'Invalid password'
82+
error: 'Invalid password',
83+
estimateInProgress: false
8384
})
8485
return
8586
}
@@ -130,7 +131,8 @@ class RenewNamePage extends Component {
130131
)
131132
} catch (error) {
132133
this.setState({
133-
error: 'Invalid password'
134+
error: 'Invalid password',
135+
renewInProgress: false
134136
})
135137
return
136138
}
@@ -146,7 +148,7 @@ class RenewNamePage extends Component {
146148
.catch(error => {
147149
this.setState({
148150
error: error.toString(),
149-
renewalInProgress: false
151+
renewInProgress: false
150152
})
151153
})
152154
}

0 commit comments

Comments
 (0)