fixed unit check
This commit is contained in:
parent
3750dcfd0e
commit
43e016633b
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
||||||
else:
|
else:
|
||||||
description_hash = b""
|
description_hash = b""
|
||||||
memo = data.memo
|
memo = data.memo
|
||||||
if not "unit" in data or data.unit == "sat":
|
if not data.unit or data.unit == "sat":
|
||||||
amount = data.amount
|
amount = data.amount
|
||||||
else:
|
else:
|
||||||
price_in_sats = await fiat_amount_as_satoshis(data.amount, data.unit)
|
price_in_sats = await fiat_amount_as_satoshis(data.amount, data.unit)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue