1
0
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:
Dan J Miller 2019-03-06 11:19:21 -03:30 committed by GitHub
parent df0c7be808
commit 7160cef4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',