Fix failed transactions

pull/2/head
Michael Scoff 7 years ago
parent ead4338aa5
commit 458e277767
  1. 2
      Trust/Transactions/Coordinators/TransactionDataCoordinator.swift

@ -113,7 +113,7 @@ class TransactionDataCoordinator {
NSLog("code \(code), error: \(message)") NSLog("code \(code), error: \(message)")
self.delete(transactions: [transaction]) self.delete(transactions: [transaction])
case .resultObjectParseError: case .resultObjectParseError:
if transaction.date < Date().addingTimeInterval(Config.deleteMissingInternalSeconds) { if transaction.date > Date().addingTimeInterval(Config.deleteMissingInternalSeconds) {
self.update(state: .failed, for: transaction) self.update(state: .failed, for: transaction)
} }
default: break default: break

Loading…
Cancel
Save