Skip to content

Commit 7160cef

Browse files
authored
Fix missing this reference in addtoken button onclick method (#6245)
1 parent df0c7be commit 7160cef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/app/components/wallet-view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ WalletView.prototype.renderAddToken = function () {
106106
hideSidebar,
107107
history,
108108
} = this.props
109+
const { metricsEvent } = this.context
109110

110111
return h(AddTokenButton, {
111112
onClick () {
112113
history.push(ADD_TOKEN_ROUTE)
113-
this.context.metricsEvent({
114+
metricsEvent({
114115
eventOpts: {
115116
category: 'Navigation',
116117
action: 'Token Menu',

0 commit comments

Comments
 (0)