From cd549315f1315755941f6a78fa5ffba421232d38 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 3 Oct 2024 12:30:30 +0300 Subject: [PATCH] fix: empty currency --- lnbits/core/views/wallet_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/wallet_api.py b/lnbits/core/views/wallet_api.py index 1a484a1b4..e0f663b2c 100644 --- a/lnbits/core/views/wallet_api.py +++ b/lnbits/core/views/wallet_api.py @@ -66,7 +66,7 @@ async def api_update_wallet( if not wallet: raise HTTPException(status_code=HTTPStatus.NOT_FOUND, detail="Wallet not found") wallet.name = name or wallet.name - wallet.currency = currency or wallet.currency + wallet.currency = currency if currency is not None else wallet.currency await update_wallet(wallet) return wallet