Skip to content

Commit

Permalink
Fix missing this reference in addtoken button onclick method (#6245)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm authored Mar 6, 2019
1 parent df0c7be commit 7160cef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/components/wallet-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ WalletView.prototype.renderAddToken = function () {
hideSidebar,
history,
} = this.props
const { metricsEvent } = this.context

return h(AddTokenButton, {
onClick () {
history.push(ADD_TOKEN_ROUTE)
this.context.metricsEvent({
metricsEvent({
eventOpts: {
category: 'Navigation',
action: 'Token Menu',
Expand Down

0 comments on commit 7160cef

Please sign in to comment.