Updated on 2026-08-14
This commit is contained in:
parent
4a726e436c
commit
ecdeb1b820
2 changed files with 5 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ internal class AddToPortfolioBSContentUMFactory(
|
|||
onNetworkSwitchClick = onNetworkSwitchClick,
|
||||
).convert(value = token),
|
||||
isScanCardNotificationVisible = portfolioUIData.hasMissedDerivations,
|
||||
continueButtonEnabled = portfolioUIData.addToPortfolioData.isUserChangedNetworks(
|
||||
continueButtonEnabled = portfolioUIData.addToPortfolioData.isUserAddedNetworks(
|
||||
userWalletId = selectedWallet.walletId,
|
||||
),
|
||||
onContinueButtonClick = {
|
||||
|
|
|
|||
|
|
@ -152,6 +152,10 @@ internal class AddToPortfolioManager @Inject constructor() {
|
|||
.orEmpty()
|
||||
}
|
||||
|
||||
fun isUserAddedNetworks(userWalletId: UserWalletId): Boolean {
|
||||
return addedNetworks[userWalletId].orEmpty().isNotEmpty()
|
||||
}
|
||||
|
||||
fun isUserChangedNetworks(userWalletId: UserWalletId): Boolean {
|
||||
return addedNetworks[userWalletId].orEmpty().isNotEmpty() ||
|
||||
removedNetworks[userWalletId].orEmpty().isNotEmpty()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue