Updated on 2026-08-14

This commit is contained in:
Tangem 2020-11-13 17:35:56 +03:00
parent 7282a83c72
commit e7a67488b1
2 changed files with 6 additions and 6 deletions

View file

@ -168,12 +168,12 @@ class TapWalletManager {
when (result) {
is Result.Success -> {
val payId = result.data
if (tapWorkarounds?.isPayIdEnabled() == false) {
store.dispatch(WalletAction.DisablePayId)
return@withContext
}
if (payId == null) {
if (tapWorkarounds?.isPayIdCreationEnabled() == false) {
store.dispatch(WalletAction.DisablePayId)
} else {
store.dispatch(WalletAction.LoadPayId.NotCreated)
}
store.dispatch(WalletAction.LoadPayId.NotCreated)
} else {
store.dispatch(WalletAction.LoadPayId.Success(payId))
}

View file

@ -8,7 +8,7 @@ class TapWorkarounds(val card: Card) {
val isStart2Coin: Boolean =
card.cardData?.issuerName?.toLowerCase(Locale.US) == START_2_COIN_ISSUER
fun isPayIdCreationEnabled(): Boolean {
fun isPayIdEnabled(): Boolean {
if (isStart2Coin) return false
return true
}