Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-25 17:45:47 +05:00
parent 774f25bf4a
commit 319f62f008
11 changed files with 49 additions and 16 deletions

View file

@ -248,7 +248,7 @@ internal class DetailsModel @Inject constructor(
}
private fun addTangemPayItemIfEligible() {
if (!tangemPayFeatureToggles.isTangemPayEnabled) return
if (!tangemPayFeatureToggles.isEntryPointsEnabled) return
modelScope.launch {
val isEligible = tangemPayEligibilityManager
.getEligibleWallets(shouldExcludePaeraCustomers = true)

View file

@ -54,10 +54,13 @@ internal class ItemsBuilder @Inject constructor(private val router: Router) {
}
fun removeTangemPayItem(items: ImmutableList<DetailsItemUM>): ImmutableList<DetailsItemUM> {
val tangemPayItem = items.find { it.id == TANGEM_PAY_ITEM_ID } ?: return items
return items.toMutableList()
.also { list -> list.remove(tangemPayItem) }
.toImmutableList()
return items.map { block ->
if (block is DetailsItemUM.Basic && block.items.any { it.id == TANGEM_PAY_ITEM_ID }) {
block.copy(items = block.items.filter { it.id != TANGEM_PAY_ITEM_ID }.toImmutableList())
} else {
block
}
}.toImmutableList()
}
private fun buildWalletConnectBlock(isWalletConnectAvailable: Boolean, userWalletId: UserWalletId): DetailsItemUM? {