wallet: models: unset type field for list transactions request

Removes the empty `type` field from the wallet's list_transactions
request in favor of a null field, which is parsable by serializers.

Signed-off-by: Hydra Yse <hydra_yse@proton.me>
This commit is contained in:
yse
2026-02-15 23:15:43 +01:00
committed by Daniel D’Aquino
parent 609cdcc5f9
commit b59816e180

View File

@@ -133,7 +133,7 @@ class WalletModel: ObservableObject {
// This is important to avoid re-rendering the view twice (waste),
// and to avoid refreshable tasks to be cancelled before updating everything
let balance = try await fetchBalance()
let transactions = try await fetchTransactions(from: nil, until: nil, limit: 50, offset: 0, unpaid: false, type: "")
let transactions = try await fetchTransactions(from: nil, until: nil, limit: 50, offset: 0, unpaid: false, type: nil)
DispatchQueue.main.async {
self.balance = balance
self.transactions = transactions