fix bug with hanging loading screen if key is not valid
This commit is contained in:
parent
b6eeba305a
commit
efb0eb3c7c
|
@ -51,6 +51,7 @@ class App extends Component {
|
|||
const isValid = await this.keysManager.isInitialKeyValid(initialKey);
|
||||
console.log(isValid);
|
||||
if(Number(isValid) !== 1){
|
||||
this.setState({loading:false});
|
||||
swal("Warning!", "The key is not valid initial Key! Please make sure you have loaded correct initial key in metamask", "warning");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue