diff --git a/AlphaWallet/Activities/ViewModels/ActivityStateViewViewModel.swift b/AlphaWallet/Activities/ViewModels/ActivityStateViewViewModel.swift index 84f50d3f5..ff324e672 100644 --- a/AlphaWallet/Activities/ViewModels/ActivityStateViewViewModel.swift +++ b/AlphaWallet/Activities/ViewModels/ActivityStateViewViewModel.swift @@ -11,16 +11,7 @@ struct ActivityStateViewViewModel { var stateImage: UIImage? { switch state { case .completed: - switch nativeViewType { - case .erc20Sent, .erc721Sent, .nativeCryptoSent: - return R.image.activitySend() - case .erc20Received, .erc721Received, .nativeCryptoReceived: - return R.image.activityReceive() - case .erc20OwnerApproved, .erc20ApprovalObtained, .erc721OwnerApproved, .erc721ApprovalObtained: - return nil - case .none: - return nil - } + return nil case .pending: return R.image.activityPending() case .failed: diff --git a/AlphaWallet/Activities/Views/DefaultActivityItemViewCell.swift b/AlphaWallet/Activities/Views/DefaultActivityItemViewCell.swift index faa533a5e..ebed84a77 100644 --- a/AlphaWallet/Activities/Views/DefaultActivityItemViewCell.swift +++ b/AlphaWallet/Activities/Views/DefaultActivityItemViewCell.swift @@ -8,7 +8,7 @@ class DefaultActivityItemViewCell: UITableViewCell { private let stateView: ActivityStateView = { let view = ActivityStateView() view.translatesAutoresizingMaskIntoConstraints = false - + return view }() diff --git a/AlphaWallet/Transactions/ViewModels/TransactionRowCellViewModel.swift b/AlphaWallet/Transactions/ViewModels/TransactionRowCellViewModel.swift index b189b7dad..238d9f3e3 100644 --- a/AlphaWallet/Transactions/ViewModels/TransactionRowCellViewModel.swift +++ b/AlphaWallet/Transactions/ViewModels/TransactionRowCellViewModel.swift @@ -138,10 +138,7 @@ struct TransactionRowCellViewModel { switch transactionRow.state { case .error, .unknown, .failed: return R.image.transaction_error() case .completed: - switch transactionRowViewModel.direction { - case .incoming: return R.image.received() - case .outgoing: return R.image.sent() - } + return nil case .pending: return R.image.transaction_pending() }