From b59816e180416d9f38940edebcfb2003ad7bfe43 Mon Sep 17 00:00:00 2001 From: yse Date: Sun, 15 Feb 2026 23:15:43 +0100 Subject: [PATCH] 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 --- damus/Features/Wallet/Models/WalletModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Features/Wallet/Models/WalletModel.swift b/damus/Features/Wallet/Models/WalletModel.swift index dda05fda..23f72ea4 100644 --- a/damus/Features/Wallet/Models/WalletModel.swift +++ b/damus/Features/Wallet/Models/WalletModel.swift @@ -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