Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcayuelas-ledger committed Oct 25, 2023
1 parent 511881c commit ca4a17f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/ledger-live-desktop/src/renderer/hooks/useDeeplinking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,14 @@ export function useDeepLinkHandler() {
if (foundCurrency.type === "FiatCurrency") return;

dispatch(
openModal("MODAL_ADD_ACCOUNTS", {
currency: foundCurrency,
}),
openModal(
"MODAL_ADD_ACCOUNTS",
foundCurrency
? {
currency: foundCurrency,
}
: undefined,
),
);
break;
}
Expand Down
12 changes: 12 additions & 0 deletions apps/ledger-live-mobile/deep-links-test-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ <h2 class="title">LedgerLive - Deep Links</h1>

<div class="separator"></div>

<button class="link" onclick="onClick('ledgerlive:\/\/add-account')">
<p>ledgerlive://add-account</p>
<p>🔗</p>
</button>

<button class="link" onclick="onClick('ledgerlive:\/\/add-account?currency=CURRENCY_PARAM')">
<p>ledgerlive://add-account?currency=<b class="currencyName">bitcoin</b></p>
<p>🔗</p>
</button>

<div class="separator"></div>

<button class="link" onclick="onClick('ledgerlive:\/\/send')">
<p>ledgerlive://send</p>
<p>🔗</p>
Expand Down

0 comments on commit ca4a17f

Please sign in to comment.