Skip to content

Commit

Permalink
fix(lld): localised URL
Browse files Browse the repository at this point in the history
  • Loading branch information
fAnselmi-Ledger committed Oct 24, 2024
1 parent 75de49b commit 060c9df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/seven-nails-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Localised URL
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import QrCodeLLMImages from "./images/QRcode_LLM.png";
import { openURL } from "~/renderer/linking";
import { urls } from "~/config/urls";
import { track } from "~/renderer/analytics/segment";
import { useLocalizedUrl } from "~/renderer/hooks/useLocalizedUrls";

type Props = {
onClose?: () => void | undefined;
Expand All @@ -28,7 +29,9 @@ const ProtectDiscoverBody = ({ onClose }: Props) => {
const { t } = useTranslation();
const protectServicesDesktopFeature = useFeature("protectServicesDesktop");

const discoverTheBenefitsLink = protectServicesDesktopFeature?.params?.discoverTheBenefitsLink;
const discoverTheBenefitsLink = useLocalizedUrl(
protectServicesDesktopFeature?.params?.discoverTheBenefitsLink || "",
);
const onDiscoverClick = useCallback(() => {
if (!discoverTheBenefitsLink) return;
track("button_clicked2", {
Expand Down

0 comments on commit 060c9df

Please sign in to comment.