Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-03 01:58:49 -07:00
parent ab6832b5e9
commit d0c76d4fc4
2 changed files with 6 additions and 3 deletions

View file

@ -94,8 +94,8 @@ internal class DefaultOnboardingRepository @Inject constructor(
val result = response.result
val status = result?.productInstance?.status
val isDeactivated = status == CustomerMeResponse.ProductInstance.Status.DEACTIVATED
val isBlocked = result?.state?.let { CustomerInfo.State.fromString(it) } == CustomerInfo.State.BLOCKED
if (isDeactivated || isBlocked) {
val isFormer = result?.state?.let { CustomerInfo.State.fromString(it) } == CustomerInfo.State.FORMER
if (isDeactivated || isFormer) {
tangemPayStorage.storeIsTangemPayDeactivated(userWalletId)
VisaApiError.Deactivated.left()
} else {