1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix Back Button on Add Token View

This commit is contained in:
Thomas Huang 2017-06-26 11:47:08 -07:00
parent 06706f6e1b
commit 7628a83fd6

View File

@ -31,6 +31,7 @@ function AddTokenScreen () {
AddTokenScreen.prototype.render = function () {
const state = this.state
const props = this.props
const { warning, symbol, decimals } = state
return (
@ -40,7 +41,7 @@ AddTokenScreen.prototype.render = function () {
h('.section-title.flex-row.flex-center', [
h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', {
onClick: (event) => {
state.dispatch(actions.goHome())
props.dispatch(actions.goHome())
},
}),
h('h2.page-subtitle', 'Add Token'),