Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-20 15:59:31 +04:00
parent 723c6159d5
commit ffa99d5593
4 changed files with 10 additions and 2 deletions

View file

@ -44,6 +44,7 @@ internal class DefaultTangemPayEligibilityManager @Inject constructor(
override suspend fun getTangemPayAvailability(): Boolean {
return onboardingRepository.checkCustomerEligibility()
.also { isEligible -> if (!isEligible) reset() }
}
private suspend fun getUserWalletsData(): List<UserWalletData> {
@ -120,7 +121,7 @@ internal class DefaultTangemPayEligibilityManager @Inject constructor(
}
}
private fun reset() {
override fun reset() {
cachedEligibleWallets = null
eligibleWalletsDeferred?.cancel()
eligibleWalletsDeferred = null