From a5389365f4c5dc03c14a3acdf2b139c3730b40dc Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 5 Feb 2026 11:54:17 +0200 Subject: [PATCH] Updated on 2026-08-14 --- .../market/details/portfolio/add/impl/model/AddTokenModel.kt | 4 ++-- .../markets/portfolio/add/impl/model/AddTokenModel.kt | 4 ++-- .../onramp/hottokens/portfolio/model/OnrampAddTokenModel.kt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/features/feed/impl/src/main/kotlin/com/tangem/features/feed/components/market/details/portfolio/add/impl/model/AddTokenModel.kt b/features/feed/impl/src/main/kotlin/com/tangem/features/feed/components/market/details/portfolio/add/impl/model/AddTokenModel.kt index 2e8b332e31..1d6e6d57be 100644 --- a/features/feed/impl/src/main/kotlin/com/tangem/features/feed/components/market/details/portfolio/add/impl/model/AddTokenModel.kt +++ b/features/feed/impl/src/main/kotlin/com/tangem/features/feed/components/market/details/portfolio/add/impl/model/AddTokenModel.kt @@ -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 { diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt index f6ac24e4dd..416154863e 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/add/impl/model/AddTokenModel.kt @@ -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 { diff --git a/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/hottokens/portfolio/model/OnrampAddTokenModel.kt b/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/hottokens/portfolio/model/OnrampAddTokenModel.kt index 8a895a5fb9..d786999cad 100644 --- a/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/hottokens/portfolio/model/OnrampAddTokenModel.kt +++ b/features/onramp/impl/src/main/kotlin/com/tangem/features/onramp/hottokens/portfolio/model/OnrampAddTokenModel.kt @@ -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 {