aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-05-29 14:34:40 +0800
committerkumavis <aaron@kumavis.me>2018-05-29 14:34:40 +0800
commita7b7c8f0349ac8db16f264268745fd4b14e89422 (patch)
treef8a2ef4b957361a82dce4c74b6546ca9f146817d
parent12492aae60b96bc439d8a7e0272b1a41924cbf1e (diff)
downloadtangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar.gz
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar.bz2
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar.lz
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar.xz
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.tar.zst
tangerine-wallet-browser-a7b7c8f0349ac8db16f264268745fd4b14e89422.zip
newui - unlock - dont catch errors unrelated to tryUnlockMetamask
-rw-r--r--ui/app/components/pages/unlock-page/unlock-page.component.js4
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 a2f009d8f..b6384b32d 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 }) {