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 | 7f631de58ad19b68e581310f09a6971e223b2e1e (patch) | |
| tree | 1701e88aac4574fc8288665aba79b2fc92caed7f /src/routes/(app)/send | |
| parent | 47904b01b6d2740edd31ee2cc40f072161ccf9c1 (diff) | |
| download | coinos-ui-7f631de58ad19b68e581310f09a6971e223b2e1e.tar.gz coinos-ui-7f631de58ad19b68e581310f09a6971e223b2e1e.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}`); |
