diff options
| author | Adam Soltys <[email protected]> | 2024-09-25 12:50:46 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-25 12:50:46 -0700 |
| commit | 3be85cc511220725bfff7add3a6cb4927f73b15c (patch) | |
| tree | 1768a9f0a25c2ee0a847d5ce0174ab3cfcf6ba77 /src/routes/(app)/send | |
| parent | 396535514c4fe00e872e5cc5af0a504e923736bb (diff) | |
| download | coinos-ui-3be85cc511220725bfff7add3a6cb4927f73b15c.tar.gz coinos-ui-3be85cc511220725bfff7add3a6cb4927f73b15c.zip | |
invoice fixes
Diffstat (limited to 'src/routes/(app)/send')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.server.ts | 2 |
1 files changed, 1 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 6c89912d..f294f88d 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.server.ts +++ b/src/routes/(app)/send/invoice/[id]/+page.server.ts @@ -12,7 +12,7 @@ export async function load({ params: { id }, parent }) { if (invoice.memoPrompt && invoice.memo === null) redirect(307, `/invoice/${id}/memo`); - if (invoice.account === user?.id) + if (user && invoice.account === user?.id) error(500, { message: "Cannot send to self" }); if (!user) redirect(307, `/invoice/${id}`); |
