Updated on 2026-08-14
This commit is contained in:
parent
fd1f70b526
commit
0ba653bfbd
3 changed files with 6 additions and 3 deletions
|
|
@ -112,7 +112,6 @@ private fun WalletDataModel.mapToReduxModel(
|
|||
amountFormatted = amountFormatted,
|
||||
fiatAmount = fiatAmount,
|
||||
fiatAmountFormatted = fiatAmountFormatted,
|
||||
// token = null,
|
||||
amountToCreateAccount = (status as? WalletDataModel.NoAccount)
|
||||
?.amountToCreateAccount
|
||||
?.toString(),
|
||||
|
|
|
|||
|
|
@ -315,7 +315,11 @@ class WalletMiddleware {
|
|||
scope.launch(Dispatchers.Default) {
|
||||
val reduxWalletStores = walletsStores.mapToReduxModels()
|
||||
if (!state.isMultiwalletAllowed) {
|
||||
findSelectedCurrency(reduxWalletStores, null, false)?.let {
|
||||
findSelectedCurrency(
|
||||
walletsStores = reduxWalletStores,
|
||||
currentSelectedCurrency = null,
|
||||
isMultiWalletAllowed = false,
|
||||
)?.let {
|
||||
store.dispatchOnMain(WalletAction.MultiWallet.SetSingleWalletCurrency(it))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class MultiWalletReducer {
|
|||
WalletStore(
|
||||
walletManager = walletManager,
|
||||
blockchainNetwork = blockchain,
|
||||
walletsData = listOfNotNull(walletData),
|
||||
walletsData = listOf(walletData),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue