Skip to content

Commit

Permalink
fix: allow tracking to be disabled for swap
Browse files Browse the repository at this point in the history
  • Loading branch information
CremaFR committed Oct 31, 2024
1 parent 10e9853 commit d39c6f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-wombats-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

fix: allow tracking to be disabled for swap
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
developerModeSelector,
enablePlatformDevToolsSelector,
languageSelector,
shareAnalyticsSelector,
} from "~/renderer/reducers/settings";
import { captureException } from "~/sentry/renderer";
import WebviewErrorDrawer from "./WebviewErrorDrawer/index";
Expand Down Expand Up @@ -117,6 +118,7 @@ const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => {
const locale = useSelector(languageSelector);
const enablePlatformDevTools = useSelector(enablePlatformDevToolsSelector);
const devMode = useSelector(developerModeSelector);
const shareAnalytics = useSelector(shareAnalyticsSelector);
const accounts = useSelector(flattenAccountsSelector);
const { t } = useTranslation();
const swapDefaultTrack = useGetSwapTrackingProperties();
Expand Down Expand Up @@ -463,6 +465,7 @@ const SwapWebView = ({ manifest, liveAppUnavailable }: SwapWebProps) => {
currencyTicker: fiatCurrency.ticker,
swapApiBase: SWAP_API_BASE,
devMode,
shareAnalytics,
}}
onStateChange={onStateChange}
ref={webviewAPIRef}
Expand Down

0 comments on commit d39c6f6

Please sign in to comment.