Remove duplicates when searching profiles by wallet address
This commit is contained in:
parent
80880555bf
commit
a3716079d7
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ pub async fn search_profile_by_wallet_address(
|
|||
let is_verified: bool = row.try_get("is_verified")?;
|
||||
if is_verified {
|
||||
verified.push(profile);
|
||||
} else {
|
||||
} else if !verified.iter().any(|item| item.id == profile.id) {
|
||||
unverified.push(profile);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue