Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-18 19:32:51 +08:00
parent 027a7c6f35
commit 0a09db0da8
2 changed files with 24 additions and 10 deletions

View file

@ -7,7 +7,6 @@ import com.tangem.tap.common.redux.AppState
import com.tangem.tap.common.redux.StateDialog
import com.tangem.tap.common.redux.global.GlobalAction
import com.tangem.tap.domain.TapError
import com.tangem.tap.proxy.redux.DaggerGraphState
import com.tangem.tap.scope
import com.tangem.tap.store
import kotlinx.coroutines.Dispatchers
@ -48,11 +47,7 @@ suspend fun Store<AppState>.onUserWalletSelected(
refresh: Boolean = false,
sendAnalyticsEvent: Boolean = false,
) {
val walletFeatureToggles = state.daggerGraphState.get(DaggerGraphState::walletFeatureToggles)
if (!walletFeatureToggles.isRedesignedScreenEnabled) {
state.globalState.tapWalletManager.onWalletSelected(userWallet, refresh, sendAnalyticsEvent)
}
state.globalState.tapWalletManager.onWalletSelected(userWallet, refresh, sendAnalyticsEvent)
}
fun Store<*>.dispatchToastNotification(resId: Int) {