fix completed tx index
@@ -172,6 +172,12 @@ impl TransactionsTab {
let completed_txs = app_state.get_completed_txs();
self.completed_list_state.set_num_items(completed_txs.len());
+ if let Some(detailed_tx) = &self.detailed_transaction {
+ if self.selected_tx_list == SelectedTransactionList::CompletedTxs {
+ let found_index = completed_txs.iter().position(|tx| tx.tx_id == detailed_tx.tx_id);
+ self.completed_list_state.select(found_index);
+ }
+ }
let mut completed_list_state = self
.completed_list_state
.get_list_state((area.height as usize).saturating_sub(3));
