Skip to content

Commit

Permalink
Make coins unique in xpub watch coins select list
Browse files Browse the repository at this point in the history
  • Loading branch information
esen committed Nov 16, 2023
1 parent a30fdde commit eb2307e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ChooseCoinService {
var wallets = [Wallet]()

for item in items {
guard case let .coin(token) = item, enabledTokensUids.contains(token.type.id) else {
guard case let .coin(token) = item, enabledTokensUids.contains(token.tokenQuery.id) else {
continue
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ChooseWatchViewModel {
switch item {
case let .coin(token):
return CoinToggleViewModel.ViewItem(
uid: token.type.id,
uid: token.tokenQuery.id,
imageUrl: token.coin.imageUrl,
placeholderImageName: "placeholder_circle_32",
title: token.coin.code,
Expand Down

0 comments on commit eb2307e

Please sign in to comment.