Updated on 2026-08-14

This commit is contained in:
Tangem 2020-11-17 10:35:06 +03:00
commit ee21a32dff
3 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ dependencies {
implementation 'com.google.android.material:material:1.2.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
implementation 'com.tangem:blockchain:1.106.0'
implementation 'com.tangem:blockchain:1.108.0'
implementation 'com.tangem:core:1.80.0'
implementation 'com.tangem:sdk:1.80.0'

View file

@ -168,14 +168,14 @@ class TapWalletManager {
withContext(Dispatchers.Main) {
when (result) {
is Result.Success -> {
val config = store.state.globalState.configManager?.config?: return@withContext
val payId = result.data
if (!config.isPayIdEnabled) {
store.dispatch(WalletAction.DisablePayId)
return@withContext
}
if (payId == null) {
val config = store.state.globalState.configManager?.config?: return@withContext
if (!config.payIdIsEnabled) {
store.dispatch(WalletAction.DisablePayId)
} else {
store.dispatch(WalletAction.LoadPayId.NotCreated)
}
store.dispatch(WalletAction.LoadPayId.NotCreated)
} else {
store.dispatch(WalletAction.LoadPayId.Success(payId))
}