Updated on 2026-08-14
This commit is contained in:
parent
c65798e39f
commit
a4462d226c
1 changed files with 5 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import com.tangem.tap.common.extensions.dispatchOnMain
|
|||
import com.tangem.tap.common.extensions.setContext
|
||||
import com.tangem.tap.common.redux.global.GlobalAction
|
||||
import com.tangem.tap.domain.model.UserWallet
|
||||
import com.tangem.tap.domain.model.builders.UserWalletIdBuilder
|
||||
import com.tangem.tap.domain.walletStores.WalletStoresError
|
||||
import com.tangem.tap.features.details.redux.walletconnect.WalletConnectAction
|
||||
import com.tangem.tap.features.disclaimer.createDisclaimer
|
||||
|
|
@ -36,7 +37,10 @@ class TapWalletManager {
|
|||
|
||||
suspend fun onWalletSelected(userWallet: UserWallet, refresh: Boolean, sendAnalyticsEvent: Boolean) {
|
||||
// do nothing if its the same wallet
|
||||
if (store.state.globalState.scanResponse == userWallet.scanResponse) return
|
||||
store.state.globalState.scanResponse?.let {
|
||||
val userWalletId = UserWalletIdBuilder.scanResponse(it).build()
|
||||
if (userWalletId == userWallet.walletId) return
|
||||
}
|
||||
|
||||
Analytics.setContext(userWallet.scanResponse)
|
||||
if (sendAnalyticsEvent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue