From 9f4946e2be688dd1c7a46238850229a0d8ec8c5d Mon Sep 17 00:00:00 2001 From: Kant Date: Tue, 13 Feb 2024 13:12:35 +0100 Subject: [PATCH] fix: LLD wallet connect deep link handling for requests [LIVE-11270] Prevents a deep link for wallet connect to go through if only coming from a request and we're already on the live-app page, aligning LLD behavior with LLM --- .changeset/big-cobras-worry.md | 5 +++++ .../ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/big-cobras-worry.md diff --git a/.changeset/big-cobras-worry.md b/.changeset/big-cobras-worry.md new file mode 100644 index 000000000000..9970c79664b1 --- /dev/null +++ b/.changeset/big-cobras-worry.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": patch +--- + +fix: LLD wallet connect deep link handling for requests again [LIVE-11270] diff --git a/apps/ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts b/apps/ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts index 8613db07adfc..4740d70d5aa4 100644 --- a/apps/ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts +++ b/apps/ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts @@ -310,7 +310,7 @@ export function useDeepLinkHandler() { if (location.pathname === "/platform/ledger-wallet-connect") { try { // Prevent a request from updating the live-app url and reloading it - if (query.uri && new URL(query.uri).searchParams.get("requestId")) { + if (!query.uri || new URL(query.uri).searchParams.get("requestId")) { return; } } catch {