fix: empty currency

This commit is contained in:
Vlad Stan
2024-10-10 09:08:43 +02:00
committed by dni ⚡
parent 28897ca120
commit cd549315f1
+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