Updated on 2026-08-14
This commit is contained in:
parent
258e950178
commit
e52bb2777f
3 changed files with 5 additions and 3 deletions
|
|
@ -224,13 +224,13 @@ internal class DefaultOnboardingRepository @Inject constructor(
|
|||
tangemPayStorage.storeHideOnboardingBanner(userWalletId, hide = true)
|
||||
}
|
||||
|
||||
override suspend fun disableTangemPay(userWalletId: UserWalletId): Either<VisaApiError, Any> {
|
||||
override suspend fun disableTangemPay(userWalletId: UserWalletId): Either<VisaApiError, Unit> {
|
||||
return requestHelper.performRequest(userWalletId) { authHeader ->
|
||||
tangemPayApi.setTangemPayEnabledStatus(
|
||||
authHeader = authHeader,
|
||||
body = SetTangemPayEnabledRequest(isTangemPayEnabled = false),
|
||||
)
|
||||
}.onRight {
|
||||
}.map {
|
||||
val address = requestHelper.getCustomerWalletAddress(userWalletId)
|
||||
tangemPayStorage.clearAll(userWalletId = userWalletId, customerWalletAddress = address)
|
||||
setHideMainOnboardingBanner(userWalletId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue