From cd23bb97082be9a35432dd434444d5f4000a8b9a Mon Sep 17 00:00:00 2001 From: Luis Couto Date: Wed, 30 Oct 2024 15:46:11 +0000 Subject: [PATCH 1/2] fix(LIVE-14547): dont set ptxSwapCoreExperiment as `false` --- apps/ledger-live-desktop/src/renderer/analytics/segment.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ledger-live-desktop/src/renderer/analytics/segment.ts b/apps/ledger-live-desktop/src/renderer/analytics/segment.ts index 5a36b3dcb6d4..e43f241e4395 100644 --- a/apps/ledger-live-desktop/src/renderer/analytics/segment.ts +++ b/apps/ledger-live-desktop/src/renderer/analytics/segment.ts @@ -89,8 +89,9 @@ const getPtxAttributes = () => { const ptxSwapLiveAppDemoThree = analyticsFeatureFlagMethod("ptxSwapLiveAppDemoThree")?.enabled; const ptxSwapExodusProvider = analyticsFeatureFlagMethod("ptxSwapExodusProvider")?.enabled; const ptxSwapCoreExperimentFlag = analyticsFeatureFlagMethod("ptxSwapCoreExperiment"); - const ptxSwapCoreExperiment = - ptxSwapCoreExperimentFlag?.enabled && ptxSwapCoreExperimentFlag?.params?.variant; + const ptxSwapCoreExperiment = ptxSwapCoreExperimentFlag?.enabled + ? ptxSwapCoreExperimentFlag?.params?.variant + : undefined; const isBatch1Enabled: boolean = !!fetchAdditionalCoins?.enabled && fetchAdditionalCoins?.params?.batch === 1; From db7b05b1a5b6a694754fde2f15d5982b27847cec Mon Sep 17 00:00:00 2001 From: Luis Couto Date: Wed, 30 Oct 2024 15:47:41 +0000 Subject: [PATCH 2/2] fix(LIVE-14547): add changeset --- .changeset/few-bikes-act.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-bikes-act.md diff --git a/.changeset/few-bikes-act.md b/.changeset/few-bikes-act.md new file mode 100644 index 000000000000..9aab1a5d7ed1 --- /dev/null +++ b/.changeset/few-bikes-act.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": patch +--- + +Do not set `ptxSwapCoreExperiment` as `false` in analytics