diff options
Diffstat (limited to 'lib/invoices.ts')
| -rw-r--r-- | lib/invoices.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts index 0919c948..c18a120b 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -37,6 +37,8 @@ export let generate = async ({ invoice, user, sender = undefined }) => { else if (sender) user = await getUser(sender.username); if (!user) fail("user not provided"); + if (account === user.id) account = undefined; + let rates = await g("rates"); if (!currency) currency = user.currency; if (!rate) rate = rates[currency]; |
