Skip to content

Commit

Permalink
fix: LLD wallet connect deep link handling for requests [LIVE-11270]
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Justkant committed Feb 13, 2024
1 parent 7716400 commit 9f4946e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-cobras-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

fix: LLD wallet connect deep link handling for requests again [LIVE-11270]
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9f4946e

Please sign in to comment.