diff options
| author | Adam Soltys <[email protected]> | 2025-08-20 23:20:02 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-08-20 23:20:02 -0700 |
| commit | eb66f787b48a2a52ece890e356fd022380f64c2e (patch) | |
| tree | bcf91e99e694d2a3da9907a3af7eafc5cbb74bf5 /src/routes/(app)/send | |
| parent | b09ebea57acff29c1423660983994710e718e158 (diff) | |
| download | coinos-ui-eb66f787b48a2a52ece890e356fd022380f64c2e.tar.gz coinos-ui-eb66f787b48a2a52ece890e356fd022380f64c2e.zip | |
set tip
Diffstat (limited to 'src/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.server.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.ts b/src/routes/(app)/send/invoice/[id]/+page.server.ts index 38507343..70b007a8 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.server.ts +++ b/src/routes/(app)/send/invoice/[id]/+page.server.ts @@ -18,11 +18,7 @@ export async function load({ cookies, depends, params: { id }, parent }) { if (!invoice.tip && invoice.user.prompt) { if (user.tip > 0) { invoice.tip = Math.round(invoice.amount * (user.tip / 100)); - invoice = await post( - "/invoice", - { invoice, user: subject }, - auth(cookies), - ); + invoice = await post(`/invoice/${id}`, { invoice }, auth(cookies)); } else { throw new Error("tip"); } |
