Fixed an issue with showing old transaction and received, instead of sent

pull/2/head
Michael Scoff 7 years ago
parent 689f37c44b
commit dd6ac71fd7
  1. 2
      Trust/Transactions/ViewModels/TransactionViewModel.swift

@ -26,7 +26,7 @@ struct TransactionViewModel {
} }
var direction: TransactionDirection { var direction: TransactionDirection {
if currentWallet.address.description == transaction.from { return .outgoing } if (currentWallet.address.description == transaction.from || currentWallet.address.description.lowercased() == transaction.from.lowercased()) { return .outgoing }
return .incoming return .incoming
} }

Loading…
Cancel
Save