diff options
author | Marc Stibane <marc@taler.net> | 2024-04-05 21:50:22 +0200 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2024-04-05 21:50:22 +0200 |
commit | 24f562331b07b2d002289d7e8b756bce76c1e5a2 (patch) | |
tree | 4723d5c4e81a6c5c474bc7ef3dd9897cb470e6cc | |
parent | 5fb423da5709a492bd07479908f721736402314c (diff) | |
download | taler-ios-24f562331b07b2d002289d7e8b756bce76c1e5a2.tar.gz taler-ios-24f562331b07b2d002289d7e8b756bce76c1e5a2.tar.bz2 taler-ios-24f562331b07b2d002289d7e8b756bce76c1e5a2.zip |
fix fatal error: Duplicate keys of type were found in a Dictionary
-rw-r--r-- | TalerWallet1/Model/Transaction.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift index 36d4907..7900180 100644 --- a/TalerWallet1/Model/Transaction.swift +++ b/TalerWallet1/Model/Transaction.swift @@ -513,7 +513,8 @@ enum Transaction: Decodable, Hashable, Identifiable, Sendable { } static func == (lhs: Transaction, rhs: Transaction) -> Bool { - return lhs.id == rhs.id + return (lhs.id == rhs.id) + && (lhs.common.txState == rhs.common.txState) } func hash(into hasher: inout Hasher) { |