show pending status for outgoing transactions (#1669)

This commit is contained in:
cyan 2024-09-05 02:15:54 +02:00 committed by GitHub
parent 0c1ca78d29
commit e29e5d9f3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,12 +69,10 @@ class TransactionListItem extends ActionListItem with Keyable {
}
String get formattedStatus {
if (transaction.direction == TransactionDirection.incoming) {
if (balanceViewModel.wallet.type == WalletType.monero ||
balanceViewModel.wallet.type == WalletType.wownero ||
balanceViewModel.wallet.type == WalletType.haven) {
return formattedPendingStatus;
}
if (balanceViewModel.wallet.type == WalletType.monero ||
balanceViewModel.wallet.type == WalletType.wownero ||
balanceViewModel.wallet.type == WalletType.haven) {
return formattedPendingStatus;
}
return transaction.isPending ? S.current.pending : '';
}