Updated on 2026-08-14
This commit is contained in:
parent
0fe1c661b1
commit
63b99697ec
2 changed files with 7 additions and 2 deletions
|
|
@ -43,7 +43,10 @@ class CurrencyExchangeManager(
|
|||
override suspend fun update() {
|
||||
_initializationStatus.value = lceLoading()
|
||||
|
||||
buyService.update()
|
||||
if (!store.inject(DaggerGraphState::onrampFeatureToggles).isFeatureEnabled) {
|
||||
buyService.update()
|
||||
}
|
||||
|
||||
sellService.update()
|
||||
|
||||
_initializationStatus.value = lceContent()
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import com.tangem.domain.redux.ReduxStateHolder
|
|||
import com.tangem.domain.tokens.legacy.TradeCryptoAction
|
||||
import com.tangem.domain.tokens.model.CryptoCurrencyStatus
|
||||
import com.tangem.domain.wallets.usecase.GetWalletsUseCase
|
||||
import com.tangem.features.onramp.OnrampFeatureToggles
|
||||
import com.tangem.features.onramp.impl.R
|
||||
import com.tangem.features.onramp.selecttoken.OnrampOperationComponent.Params
|
||||
import com.tangem.features.onramp.selecttoken.entity.OnrampOperationUM
|
||||
|
|
@ -44,6 +45,7 @@ internal class OnrampOperationModel @Inject constructor(
|
|||
private val reduxStateHolder: ReduxStateHolder,
|
||||
private val isDemoCardUseCase: IsDemoCardUseCase,
|
||||
private val messageSender: UiMessageSender,
|
||||
private val onrampFeatureToggles: OnrampFeatureToggles,
|
||||
) : Model() {
|
||||
|
||||
val state: StateFlow<OnrampOperationUM> get() = _state
|
||||
|
|
@ -72,7 +74,7 @@ internal class OnrampOperationModel @Inject constructor(
|
|||
},
|
||||
)
|
||||
|
||||
if (params is Params.Sell) {
|
||||
if (params is Params.Sell || !onrampFeatureToggles.isFeatureEnabled) {
|
||||
showErrorIfDemoModeOrElse { selectToken(status) }
|
||||
} else {
|
||||
selectToken(status)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue