File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -187,18 +187,20 @@ final class TransactionTableViewCell: UITableViewCell {
187187 dateLabel. textColor = transaction. transactionStatus? . color ?? . adamant. secondary
188188
189189 switch transaction. transactionStatus {
190- case . success, . inconsistent:
191- if let date = transaction. dateValue {
192- dateLabel. text = date. humanizedDateTime ( )
193- } else {
194- dateLabel. text = nil
195- }
196- case . failed:
197- dateLabel. text = TransactionStatus . failed. localized
198- case . pending, . registered, . notInitiated:
199- dateLabel. text = TransactionStatus . pending. localized
200- default :
201- dateLabel. text = TransactionDetailsViewControllerBase . awaitingValueString
190+ case . success, . inconsistent:
191+ if let date = transaction. dateValue {
192+ dateLabel. text = date. humanizedDateTime ( )
193+ } else {
194+ dateLabel. text = nil
195+ }
196+ case . failed:
197+ dateLabel. text = TransactionStatus . failed. localized
198+ case . pending, . registered:
199+ dateLabel. text = TransactionStatus . pending. localized
200+ case . notInitiated:
201+ dateLabel. text = TransactionDetailsViewControllerBase . awaitingValueString
202+ default :
203+ dateLabel. text = TransactionDetailsViewControllerBase . awaitingValueString
202204 }
203205
204206 if let partnerName = transaction. partnerName {
You can’t perform that action at this time.
0 commit comments