gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 15/25: cleanup sortedTransactions


From: gnunet
Subject: [taler-taler-ios] 15/25: cleanup sortedTransactions
Date: Mon, 06 Nov 2023 20:40:22 +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 b6df844c281d1e2e1ef4befb729051c5f4931171
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sat Nov 4 16:05:33 2023 +0100

    cleanup sortedTransactions
---
 TalerWallet1/Views/Balances/BalancesSectionView.swift | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift 
b/TalerWallet1/Views/Balances/BalancesSectionView.swift
index 9cf169a..7acdb48 100644
--- a/TalerWallet1/Views/Balances/BalancesSectionView.swift
+++ b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -131,18 +131,8 @@ extension BalancesSectionView: View {
         let transactionCount = completedTransactions.count
         /// if there is only one currency, then show recent transactions
         if sectionCount == 1 && transactionCount > 0 {
-            let sortedTransactions = completedTransactions.sorted {
-                do {
-                    let first = try $0.common.timestamp.milliseconds()
-                    let second = try $1.common.timestamp.milliseconds()
-                    return first > second
-                } catch {
-                    symLog.log(error)
-                    return false        // should never happen
-                }
-            }
             Section {
-                let slice = sortedTransactions.prefix(3)
+                let slice = completedTransactions.prefix(3)         // already 
sorted
                 let threeTransactions = Array(slice)
                 TransactionsRowsView(symLog: symLog,
                                       stack: stack.push(),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]