Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Sep 28, 2021
1 parent 87da568 commit f28e87e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,8 @@ impl TransactionsTab {
.unwrap_or_else(|| "N/A".to_string()),
Style::default().fg(Color::White),
);
let maturity = tx.maturity;
let maturity = if maturity > 0 {
format!("Spendable at Block #{}", maturity)
let maturity = if tx.maturity > 0 {
format!("Spendable at Block #{}", tx.maturity)
} else {
"N/A".to_string()
};
Expand Down
4 changes: 2 additions & 2 deletions applications/tari_console_wallet/src/ui/state/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ impl AppStateInner {
});
self.data.pending_txs = pending_transactions
.iter()
.map(|pt| CompletedTransactionInfo::from(pt.clone()))
.map(|tx| CompletedTransactionInfo::from(tx.clone()))
.collect();

let mut completed_transactions: Vec<CompletedTransaction> = Vec::new();
Expand Down Expand Up @@ -556,7 +556,7 @@ impl AppStateInner {

self.data.completed_txs = completed_transactions
.iter()
.map(|pt| CompletedTransactionInfo::from(pt.clone()))
.map(|tx| CompletedTransactionInfo::from(tx.clone()))
.collect();
self.updated = true;
Ok(())
Expand Down

0 comments on commit f28e87e

Please sign in to comment.