diff options
author | kumavis <aaron@kumavis.me> | 2018-05-29 14:34:40 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-29 14:44:51 +0800 |
commit | 7d449e974ddd5412581fe00976429c2ebb9ab644 (patch) | |
tree | 32dae163256dbc2634196ac83ab37e61bf8cdc57 | |
parent | c9f3404ca5b04df859f765f9f8e90f21737142c1 (diff) | |
download | dexon-wallet-7d449e974ddd5412581fe00976429c2ebb9ab644.tar.gz dexon-wallet-7d449e974ddd5412581fe00976429c2ebb9ab644.tar.zst dexon-wallet-7d449e974ddd5412581fe00976429c2ebb9ab644.zip |
newui - unlock - dont catch errors unrelated to tryUnlockMetamask
-rw-r--r-- | ui/app/components/pages/unlock-page/unlock-page.component.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/pages/unlock-page/unlock-page.component.js b/ui/app/components/pages/unlock-page/unlock-page.component.js index a2f009d8..b6384b32 100644 --- a/ui/app/components/pages/unlock-page/unlock-page.component.js +++ b/ui/app/components/pages/unlock-page/unlock-page.component.js @@ -37,8 +37,8 @@ class UnlockPage extends Component { tryUnlockMetamask (password) { const { tryUnlockMetamask, history } = this.props tryUnlockMetamask(password) - .then(() => history.push(DEFAULT_ROUTE)) .catch(({ message }) => this.setState({ error: message })) + .then(() => history.push(DEFAULT_ROUTE)) } handleSubmit (event) { @@ -55,8 +55,8 @@ class UnlockPage extends Component { this.setState({ error: null }) tryUnlockMetamask(password) - .then(() => history.push(DEFAULT_ROUTE)) .catch(({ message }) => this.setState({ error: message })) + .then(() => history.push(DEFAULT_ROUTE)) } handleInputChange ({ target }) { |