mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #4393 from MetaMask/newui-unlock-catch
newui - unlock - dont catch errors unrelated to tryUnlockMetamask
This commit is contained in:
commit
c665fe191d
@ -37,8 +37,8 @@ class UnlockPage extends Component {
|
|||||||
tryUnlockMetamask (password) {
|
tryUnlockMetamask (password) {
|
||||||
const { tryUnlockMetamask, history } = this.props
|
const { tryUnlockMetamask, history } = this.props
|
||||||
tryUnlockMetamask(password)
|
tryUnlockMetamask(password)
|
||||||
.then(() => history.push(DEFAULT_ROUTE))
|
|
||||||
.catch(({ message }) => this.setState({ error: message }))
|
.catch(({ message }) => this.setState({ error: message }))
|
||||||
|
.then(() => history.push(DEFAULT_ROUTE))
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSubmit (event) {
|
handleSubmit (event) {
|
||||||
@ -55,8 +55,8 @@ class UnlockPage extends Component {
|
|||||||
this.setState({ error: null })
|
this.setState({ error: null })
|
||||||
|
|
||||||
tryUnlockMetamask(password)
|
tryUnlockMetamask(password)
|
||||||
.then(() => history.push(DEFAULT_ROUTE))
|
|
||||||
.catch(({ message }) => this.setState({ error: message }))
|
.catch(({ message }) => this.setState({ error: message }))
|
||||||
|
.then(() => history.push(DEFAULT_ROUTE))
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputChange ({ target }) {
|
handleInputChange ({ target }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user