Skip to content

Commit

Permalink
feat: include label in share link
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Nov 13, 2024
1 parent 86363cf commit 08ae31c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/wallet/Share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export function Share() {
if (nwcUrl) {
console.log("Restoring wallet URL", nwcUrl);
const nwcEncoded = btoa(nwcUrl);
setShareURI(window.location.href.replace("/wallet/share", `?nwc=${nwcEncoded}`));
setShareURI(
window.location.href.replace(
"/wallet/share",
`?nwc=${nwcEncoded}&name=${localStorage.getItem(localStorageKeys.label) || ""}`
)
);
}
}, []);

Expand Down

0 comments on commit 08ae31c

Please sign in to comment.