aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/wallet-view.js3
1 files changed, 2 insertions, 1 deletions
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',