From d559c604fa841716c01c5f95ee8a3c589724971f Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Thu, 17 Feb 2022 09:29:10 +0100 Subject: [PATCH] invoice without memo --- lnbits/core/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 392575202..e353b03b6 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -140,7 +140,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet): memo = "" else: description_hash = b"" - memo = data.memo + memo = data.memo if data.memo is not None else "LNbits" if data.unit == "sat": amount = int(data.amount) else: