Fix market overview

This commit is contained in:
2026-07-23 00:30:57 +02:00
parent e4773db9d8
commit b76a1f9aed
2 changed files with 17 additions and 11 deletions
+9 -2
View File
@@ -137,7 +137,7 @@ struct Property(&'static str, String);
impl Formatted for MarketOverview {
fn get_formatted(&self) -> Vec<String> {
vec![
let mut o = vec![
Property("TREND", format!("{}", self.trend)),
Property("VOLATILITY", format!("{}", self.volatility)),
Property(
@@ -149,7 +149,14 @@ impl Formatted for MarketOverview {
},
),
]
.get_formatted()
.get_formatted();
o.push(format!(
"\n{}",
apply_padding(self.alerts.get_formatted()).join("\n")
));
o
}
}