show pending status for outgoing transactions (#1669)
cyan committed
Sep 5, 2024 at 02:15 UTC
e29e5d9f3c6040f616c08e993aa349d64766c874
1 file changed
+4
-6
lib/view_model/dashboard/transaction_list_item.dart
+4
-6
@@ -69,12 +69,10 @@ class TransactionListItem extends ActionListItem with Keyable {
69
}
70
71
String get formattedStatus {
72
- if (transaction.direction == TransactionDirection.incoming) {
73
- if (balanceViewModel.wallet.type == WalletType.monero ||
74
- balanceViewModel.wallet.type == WalletType.wownero ||
75
- balanceViewModel.wallet.type == WalletType.haven) {
76
- return formattedPendingStatus;
77
- }
72
+ if (balanceViewModel.wallet.type == WalletType.monero ||
73
+ balanceViewModel.wallet.type == WalletType.wownero ||
74
+ balanceViewModel.wallet.type == WalletType.haven) {
75
+ return formattedPendingStatus;
76
}
77
return transaction.isPending ? S.current.pending : '';
78
}