Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-05 11:54:17 +02:00
parent 6edf2d043b
commit a5389365f4
3 changed files with 6 additions and 6 deletions

View file

@ -96,11 +96,11 @@ internal class AddTokenModel @Inject constructor(
return@launch
}
val status = getAccountCurrencyStatusUseCase.invokeSync(
val status = getAccountCurrencyStatusUseCase(
userWalletId = accountId.userWalletId,
currencyId = cryptoCurrency.id,
network = cryptoCurrency.network,
).getOrNull()
).firstOrNull()
if (status == null) {
processError(error = null)
} else {

View file

@ -96,11 +96,11 @@ internal class AddTokenModel @Inject constructor(
return@launch
}
val status = getAccountCurrencyStatusUseCase.invokeSync(
val status = getAccountCurrencyStatusUseCase(
userWalletId = accountId.userWalletId,
currencyId = cryptoCurrency.id,
network = cryptoCurrency.network,
).getOrNull()
).firstOrNull()
if (status == null) {
processError(error = null)
} else {

View file

@ -75,11 +75,11 @@ internal class OnrampAddTokenModel @Inject constructor(
return@launch
}
val status = getAccountCurrencyStatusUseCase.invokeSync(
val status = getAccountCurrencyStatusUseCase(
userWalletId = accountId.userWalletId,
currencyId = cryptoCurrency.id,
network = cryptoCurrency.network,
).getOrNull()
).firstOrNull()
if (status == null) {
processError(error = null)
} else {