fix: empty currency

This commit is contained in:
Vlad Stan
2024-10-17 10:40:19 +02:00
committed by dni ⚡
parent b75305caad
commit 31af34fac9
+1 -1
View File
@@ -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