fix bug with hanging loading screen if key is not valid

This commit is contained in:
Roman Storm 2017-12-07 22:02:32 -08:00
parent b6eeba305a
commit efb0eb3c7c
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}