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,
|
||||
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',
|
||||
|
Loading…
Reference in New Issue
Block a user