[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 09/204: nonZeroBalances
From: |
gnunet |
Subject: |
[taler-taler-ios] 09/204: nonZeroBalances |
Date: |
Thu, 05 Dec 2024 23:49:37 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 97c1dc803ef0b1bee3209d537326e2b1ec7133dc
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Sep 11 08:15:48 2024 +0200
nonZeroBalances
---
TalerWallet1/Model/Model+Balances.swift | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/TalerWallet1/Model/Model+Balances.swift
b/TalerWallet1/Model/Model+Balances.swift
index 09c5acd..461183e 100644
--- a/TalerWallet1/Model/Model+Balances.swift
+++ b/TalerWallet1/Model/Model+Balances.swift
@@ -39,6 +39,13 @@ struct Balance: Decodable, Hashable, Sendable {
hasher.combine(flags)
}
}
+extension Balance {
+ static func nonZeroBalances(_ balances: [Balance]) -> [Balance] {
+ balances.filter { balance in
+ !balance.available.isZero
+ }
+ }
+}
// MARK: -
/// A request to get the balances held in the wallet.
fileprivate struct Balances: WalletBackendFormattedRequest {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (5f3f808 -> 36ccf96), gnunet, 2024/12/05
- [taler-taler-ios] 01/204: Notifications, gnunet, 2024/12/05
- [taler-taler-ios] 03/204: Actions, gnunet, 2024/12/05
- [taler-taler-ios] 04/204: w.i.p, gnunet, 2024/12/05
- [taler-taler-ios] 02/204: Actions, -Overview, gnunet, 2024/12/05
- [taler-taler-ios] 08/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 06/204: fix fixedInnerHeight, gnunet, 2024/12/05
- [taler-taler-ios] 05/204: HelperViews, gnunet, 2024/12/05
- [taler-taler-ios] 07/204: amountAvailable @Binding, gnunet, 2024/12/05
- [taler-taler-ios] 09/204: nonZeroBalances,
gnunet <=
- [taler-taler-ios] 11/204: debug, gnunet, 2024/12/05
- [taler-taler-ios] 10/204: SendAmount with Picker, gnunet, 2024/12/05
- [taler-taler-ios] 16/204: GetMaxDepositAmount, gnunet, 2024/12/05
- [taler-taler-ios] 12/204: cleanup project, gnunet, 2024/12/05
- [taler-taler-ios] 14/204: PaymentInsufficientBalanceDetails, gnunet, 2024/12/05
- [taler-taler-ios] 22/204: Sheet drop bar, gnunet, 2024/12/05
- [taler-taler-ios] 13/204: balances & selectedBalance, move action navigation to MainView, gnunet, 2024/12/05
- [taler-taler-ios] 24/204: @State ScopeInfo.zero, gnunet, 2024/12/05
- [taler-taler-ios] 15/204: GetMaxPeerPushDebitAmount, gnunet, 2024/12/05
- [taler-taler-ios] 17/204: "Transactions" -> currency, gnunet, 2024/12/05