diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-02-10 04:05:27 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-02-10 04:05:27 +0800 |
commit | 72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692 (patch) | |
tree | 0a10e6fc1d76c1184bf714691bcf3c0b55acd9b6 /ui | |
parent | ef0bbb291d3eb6a72e8277179e020b7decbec70f (diff) | |
download | tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar.gz tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar.bz2 tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar.lz tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar.xz tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.tar.zst tangerine-wallet-browser-72ffa2c3f5abbcb06c8ab5fdf20b9d934c330692.zip |
Fix react-router related exceptions
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 2 | ||||
-rw-r--r-- | ui/app/components/pending-tx/confirm-send-token.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 0ecfd0dde..168dfa9ac 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -268,7 +268,7 @@ class App extends Component { }, [ h('div.app-header-contents', {}, [ h('div.left-menu-wrapper', { - onClick: () => history.push(DEFAULT_ROUTE), + onClick: () => props.history.push(DEFAULT_ROUTE), }, [ // mini logo h('img.metafox-icon', { diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js index da3a92fa8..f52fd01da 100644 --- a/ui/app/components/pending-tx/confirm-send-token.js +++ b/ui/app/components/pending-tx/confirm-send-token.js @@ -327,7 +327,7 @@ ConfirmSendToken.prototype.render = function () { h('div.confirm-screen-wrapper.flex-column.flex-grow', [ h('h3.flex-center.confirm-screen-header', [ h('button.btn-clear.confirm-screen-back-button', { - onClick: () => editTransaction(txMeta), + onClick: () => this.editTransaction(txMeta), }, 'EDIT'), h('div.confirm-screen-title', 'Confirm Transaction'), h('div.confirm-screen-header-tip'), |