diff options
Diffstat (limited to 'lib/invoices.ts')
| -rw-r--r-- | lib/invoices.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts index d121353c..4710beb2 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -32,7 +32,6 @@ export const generate = async ({ invoice, user }) => { secret, } = invoice; - amount = parseInt(amount || 0); tip = parseInt(tip) || null; @@ -102,11 +101,11 @@ export const generate = async ({ invoice, user }) => { await s(`invoice:${r.offer_id}`, id); } else if (type === types.bitcoin) { - address_type ||= "bech32" + address_type ||= "bech32"; hash = await bc.getNewAddress({ address_type }); text = bip21(hash, invoice); } else if (type === types.liquid) { - address_type ||= "blech32" + address_type ||= "blech32"; hash = await lq.getNewAddress({ address_type }); text = bip21(hash, invoice); } else if (type === types.internal) { |
