Updated on 2026-08-14
This commit is contained in:
parent
723c6159d5
commit
ffa99d5593
4 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue