Skip to content

Commit

Permalink
use find_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Nov 7, 2023
1 parent 01491a4 commit 866ca1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/src/lib/client/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,8 @@ async fn query_tokens<'a>(
let mut tokens = match base_token {
Some(base_token) => {
let mut map = BTreeMap::new();
let alias = wallet.lookup_alias(base_token);
if alias != base_token.to_string() {
map.insert(alias, base_token.clone());
if let Some(alias) = wallet.find_alias(base_token) {
map.insert(alias.to_string(), base_token.clone());
}
map
}
Expand Down

0 comments on commit 866ca1b

Please sign in to comment.