From 7160cef4c70e3174b90e52695ef00ac67d834967 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Wed, 6 Mar 2019 11:19:21 -0330 Subject: Fix missing this reference in addtoken button onclick method (#6245) --- ui/app/components/wallet-view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 65a532af6..db572e5cb 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', -- cgit v1.2.3