cashu redeem #551

Merged
Kieran merged 10 commits from cashu into main 2023-05-09 16:25:45 +00:00
Showing only changes of commit 51e6e0984e - Show all commits

View File

@ -16,7 +16,9 @@ export default function CashuNuts({ token }: { token: string }) {
async function redeemToken(e: React.MouseEvent<HTMLButtonElement>, token: string) {
e.stopPropagation();
const lnurl = profile?.lud16 ?? "";
const url = `https://redeem.cashu.me?token=${encodeURIComponent(token)}&lightning=${encodeURIComponent(lnurl)}`;
const url = `https://redeem.cashu.me?token=${encodeURIComponent(token)}&lightning=${encodeURIComponent(
lnurl
)}&autopay=yes`;
window.open(url, "_blank");
}