Skip to content

Commit

Permalink
show pending status for outgoing transactions (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK authored Sep 5, 2024
1 parent 0c1ca78 commit e29e5d9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/view_model/dashboard/transaction_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '';
}
Expand Down

0 comments on commit e29e5d9

Please sign in to comment.