Skip to content

Commit 6ca88ce

Browse files
fix: Fix analytics for unwanted events when using extension (#1219)
fix: fixes sending analytics for unwanted events when using extension and inapp browser
1 parent 6ecc599 commit 6ca88ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/sdk/src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ export const METHODS_TO_REDIRECT: { [method: string]: boolean } = {
4949
[RPC_METHODS.METAMASK_OPEN]: true,
5050
};
5151

52-
export const lcAnalyticsRPCs = Object.keys(METHODS_TO_REDIRECT).map((method) =>
53-
method.toLowerCase(),
54-
);
52+
export const lcAnalyticsRPCs = Object.keys(METHODS_TO_REDIRECT)
53+
.filter((method) => METHODS_TO_REDIRECT[method] === true)
54+
.map((method) => method.toLowerCase());
5555

5656
// unsupported extension connectWith methods
5757
export const rpcWithAccountParam = [

0 commit comments

Comments
 (0)