mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix Buy Ether via Moonpay and Wyre actions (#14322)
This commit is contained in:
parent
9760750231
commit
7d9796bb53
@ -154,11 +154,12 @@ export default class DepositEtherModal extends Component {
|
||||
text: t('buyCryptoWithMoonPayDescription', [symbol]),
|
||||
buttonLabel: t('continueToMoonPay'),
|
||||
onButtonClick: () => {
|
||||
this.context.metricsEvent({
|
||||
eventOpts: {
|
||||
category: 'Accounts',
|
||||
action: 'Deposit tokens',
|
||||
name: 'Click buy tokens via MoonPay',
|
||||
this.context.trackEvent({
|
||||
category: 'Accounts',
|
||||
event: 'Click buy Ether via MoonPay',
|
||||
properties: {
|
||||
action: 'Deposit Ether',
|
||||
legacy_event: true,
|
||||
},
|
||||
});
|
||||
toMoonPay(address, chainId);
|
||||
@ -171,11 +172,12 @@ export default class DepositEtherModal extends Component {
|
||||
text: t('buyWithWyreDescription'),
|
||||
buttonLabel: t('continueToWyre'),
|
||||
onButtonClick: () => {
|
||||
this.context.metricsEvent({
|
||||
eventOpts: {
|
||||
category: 'Accounts',
|
||||
this.context.trackEvent({
|
||||
category: 'Accounts',
|
||||
event: 'Click buy Ether via Wyre',
|
||||
properties: {
|
||||
action: 'Deposit Ether',
|
||||
name: 'Click buy Ether via Wyre',
|
||||
legacy_event: true,
|
||||
},
|
||||
});
|
||||
toWyre(address);
|
||||
|
Loading…
Reference in New Issue
Block a user