Updated on 2026-08-14
This commit is contained in:
parent
65b6bb77a6
commit
4efcd5990e
1 changed files with 2 additions and 1 deletions
|
|
@ -602,7 +602,8 @@ internal class AddCustomTokenViewModel @Inject constructor(
|
|||
val networkSelectorValue = uiState.form.networkSelectorField.selectedItem.blockchain
|
||||
val networkId = Blockchain.fromNetworkId(networkSelectorValue.toNetworkId())?.id
|
||||
|
||||
val savedTokenId = if (token.isCustom) null else token.id.value
|
||||
// todo after move foundToken to CryptoCurrency model, use only id
|
||||
val savedTokenId = if (token.isCustom) null else token.id.rawCurrencyId
|
||||
|
||||
val sameId = foundToken?.id == savedTokenId
|
||||
val sameAddress = contractAddress == token.contractAddress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue