|
|
@@ -441,7 +441,7 @@ async fn handle_category(
|
|
|
))
|
|
|
})?;
|
|
|
|
|
|
- let accounts = user
|
|
|
+ let mut accounts = user
|
|
|
.accounts
|
|
|
.iter()
|
|
|
.filter(|&e| {
|
|
|
@@ -449,6 +449,8 @@ async fn handle_category(
|
|
|
})
|
|
|
.collect::<Vec<_>>();
|
|
|
|
|
|
+ accounts.sort_unstable();
|
|
|
+
|
|
|
if accounts.is_empty() {
|
|
|
bot.send_message(msg.chat.id, format!("Input subcategory for {}", item))
|
|
|
.await?;
|