File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const useBridging = () => {
57
57
58
58
const openBridgeExperience = useCallback (
59
59
(
60
- location : string ,
60
+ location : MetaMetricsSwapsEventSource | 'Carousel' ,
61
61
token : SwapsTokenObject | SwapsEthToken ,
62
62
isSwap = false ,
63
63
portfolioUrlSuffix ?: string ,
@@ -71,10 +71,7 @@ const useBridging = () => {
71
71
event : MetaMetricsEventName . ActionOpened ,
72
72
category : MetaMetricsEventCategory . Navigation ,
73
73
properties : {
74
- location :
75
- location === 'Home'
76
- ? MetaMetricsSwapsEventSource . MainView
77
- : MetaMetricsSwapsEventSource . TokenView ,
74
+ location,
78
75
chain_id_source : providerConfig . chainId ,
79
76
token_symbol_source : token . symbol ,
80
77
token_address_source : token . address ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
18
18
export type CrossChainSwapsEventProperties = {
19
19
[ MetaMetricsEventName . ActionOpened ] : RequestParams & {
20
- location : MetaMetricsSwapsEventSource ;
20
+ location : MetaMetricsSwapsEventSource | 'Carousel' ;
21
21
} ;
22
22
[ MetaMetricsEventName . ActionCompleted ] : RequestParams &
23
23
RequestMetadata &
You can’t perform that action at this time.
0 commit comments