mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix missing this reference in addtoken button onclick method (#6245)
This commit is contained in:
parent
df0c7be808
commit
7160cef4c7
@ -106,11 +106,12 @@ WalletView.prototype.renderAddToken = function () {
|
|||||||
hideSidebar,
|
hideSidebar,
|
||||||
history,
|
history,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
const { metricsEvent } = this.context
|
||||||
|
|
||||||
return h(AddTokenButton, {
|
return h(AddTokenButton, {
|
||||||
onClick () {
|
onClick () {
|
||||||
history.push(ADD_TOKEN_ROUTE)
|
history.push(ADD_TOKEN_ROUTE)
|
||||||
this.context.metricsEvent({
|
metricsEvent({
|
||||||
eventOpts: {
|
eventOpts: {
|
||||||
category: 'Navigation',
|
category: 'Navigation',
|
||||||
action: 'Token Menu',
|
action: 'Token Menu',
|
||||||
|
Loading…
Reference in New Issue
Block a user