This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments