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