Skip to content

Commit 787948a

Browse files
committedFeb 6, 2025
chore: deprecate BridgeLinkClicked event
1 parent 9a916ba commit 787948a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎ui/hooks/bridge/useBridging.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const useBridging = () => {
5757

5858
const openBridgeExperience = useCallback(
5959
(
60-
location: string,
60+
location: MetaMetricsSwapsEventSource | 'Carousel',
6161
token: SwapsTokenObject | SwapsEthToken,
6262
isSwap = false,
6363
portfolioUrlSuffix?: string,
@@ -71,10 +71,7 @@ const useBridging = () => {
7171
event: MetaMetricsEventName.ActionOpened,
7272
category: MetaMetricsEventCategory.Navigation,
7373
properties: {
74-
location:
75-
location === 'Home'
76-
? MetaMetricsSwapsEventSource.MainView
77-
: MetaMetricsSwapsEventSource.TokenView,
74+
location,
7875
chain_id_source: providerConfig.chainId,
7976
token_symbol_source: token.symbol,
8077
token_address_source: token.address,

‎ui/hooks/bridge/useCrossChainSwapsEventTracker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717

1818
export type CrossChainSwapsEventProperties = {
1919
[MetaMetricsEventName.ActionOpened]: RequestParams & {
20-
location: MetaMetricsSwapsEventSource;
20+
location: MetaMetricsSwapsEventSource | 'Carousel';
2121
};
2222
[MetaMetricsEventName.ActionCompleted]: RequestParams &
2323
RequestMetadata &

0 commit comments

Comments
 (0)