Updated on 2026-08-14
This commit is contained in:
parent
ab6832b5e9
commit
d0c76d4fc4
2 changed files with 6 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue