Updated on 2026-08-14
This commit is contained in:
parent
aaa394bae5
commit
33759c620c
1 changed files with 11 additions and 2 deletions
|
|
@ -199,8 +199,17 @@ class TapWalletManager {
|
|||
store.dispatch(WalletAction.MultiWallet.FindBlockchainsInUse(card, walletManagerFactory))
|
||||
store.dispatch(WalletAction.MultiWallet.FindTokensInUse)
|
||||
} else {
|
||||
val blockchains = savedCurrencies.blockchains
|
||||
val walletManagers = walletManagerFactory.makeWalletManagersForApp(card, blockchains)
|
||||
val blockchains = savedCurrencies.blockchains
|
||||
val walletManagers = if (
|
||||
presetTokens.isNotEmpty() &&
|
||||
primaryWalletManager != null && primaryBlockchain != null
|
||||
) {
|
||||
val blockchainsWithoutPrimary = blockchains.filterNot { it == primaryBlockchain }
|
||||
walletManagerFactory.makeWalletManagersForApp(card, blockchainsWithoutPrimary)
|
||||
.plus(primaryWalletManager)
|
||||
} else {
|
||||
walletManagerFactory.makeWalletManagersForApp(card, blockchains)
|
||||
}
|
||||
|
||||
store.dispatch(WalletAction.MultiWallet.AddWalletManagers(walletManagers))
|
||||
store.dispatch(WalletAction.MultiWallet.AddBlockchains(blockchains))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue