diff options
| author | Adam Soltys <[email protected]> | 2025-01-17 06:00:17 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-17 06:00:17 -0800 |
| commit | 5d482689eecdafebf82816bbdc0d9bc37c9e38c3 (patch) | |
| tree | 1701e88aac4574fc8288665aba79b2fc92caed7f /src/routes/(app)/send | |
| parent | ac3a6407a95879ce68e28a1633697de6d7a95770 (diff) | |
| download | coinos-ui-5d482689eecdafebf82816bbdc0d9bc37c9e38c3.tar.gz coinos-ui-5d482689eecdafebf82816bbdc0d9bc37c9e38c3.zip | |
set lud16
Diffstat (limited to 'src/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.server.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.ts b/src/routes/(app)/send/invoice/[id]/+page.server.ts index 658629ef..3ef933d4 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.server.ts +++ b/src/routes/(app)/send/invoice/[id]/+page.server.ts @@ -17,7 +17,12 @@ export async function load({ cookies, params: { id }, parent }) { if (user && invoice.aid === aid) error(500, { message: "Cannot send to self" }); else if (user && ![types.lightning, types.bolt12].includes(invoice.type)) - redirect(307, `/send/${invoice.type === types.ecash ? "ecash" : "bitcoin"}/${invoice.hash}`); + redirect( + 307, + `/send/${invoice.type === types.ecash ? "ecash" : "bitcoin"}/${ + invoice.hash + }`, + ); if (!user) redirect(307, `/invoice/${id}`); |
