diff --git a/src/commands/trade.rs b/src/commands/trade.rs index 4315520..afdc503 100644 --- a/src/commands/trade.rs +++ b/src/commands/trade.rs @@ -39,7 +39,7 @@ impl AccountCommand for TradeCommand { crate::do_login(&mut account)?; } - info!("Checking for trade confirmations"); + info!("{}: Checking for trade confirmations", account.account_name); let confirmations: Vec; loop { match account.get_trade_confirmations() { @@ -55,6 +55,11 @@ impl AccountCommand for TradeCommand { } } + if confirmations.is_empty() { + info!("{}: No confirmations", account.account_name); + continue; + } + let mut any_failed = false; if self.accept_all { info!("accepting all confirmations"); diff --git a/src/tui.rs b/src/tui.rs index 68c9804..2d8b0b0 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -84,7 +84,7 @@ pub(crate) fn prompt_confirmation_menu( confirmations: Vec, ) -> anyhow::Result<(Vec, Vec)> { if confirmations.is_empty() { - bail!("no confirmations") + return Ok((vec![], vec![])); } let mut to_accept_idx: HashSet = HashSet::new();