Fix react-router related exceptions

This commit is contained in:
Alexander Tseung 2018-02-09 12:05:27 -08:00
parent ef0bbb291d
commit 72ffa2c3f5
2 changed files with 2 additions and 2 deletions

View File

@ -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', {

View File

@ -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'),