From 527f1b73cf0d8522a0e664ccb7acffba37863fb5 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Wed, 6 Mar 2019 10:10:21 -0330 Subject: [PATCH] Fix missing this reference in addtoken button onclick method --- ui/app/components/wallet-view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 65a532af6d76..db572e5cbfc2 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -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',