fix(@desktop/wallet): When a path is shown on goreli and I disable it , it still shows the path to Goreli on simple view

fixes #10393
This commit is contained in:
Khushboo Mehta 2023-04-25 09:39:42 +02:00 committed by Khushboo-dev-cpp
parent 7d6a2bae5f
commit 663fac9fa7
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ StatusDialog {
} }
// add networks that are down to disabled list // add networks that are down to disabled list
if(!!d.networkConnectionStore.blockchainNetworksDown) { if(d.networkConnectionStore.blockchainNetworksDown.length !== 0) {
for(let i in d.networkConnectionStore.blockchainNetworksDown) { for(let i in d.networkConnectionStore.blockchainNetworksDown) {
store.addRemoveDisabledToChain(parseInt(d.networkConnectionStore.blockchainNetworksDown[i]), true) store.addRemoveDisabledToChain(parseInt(d.networkConnectionStore.blockchainNetworksDown[i]), true)
} }

View File

@ -15,7 +15,7 @@ QtObject {
readonly property bool marketValuesCache: walletSectionCurrent.hasMarketValuesCache readonly property bool marketValuesCache: walletSectionCurrent.hasMarketValuesCache
readonly property bool collectiblesCache: walletSectionCurrent.getHasCollectiblesCache() readonly property bool collectiblesCache: walletSectionCurrent.getHasCollectiblesCache()
readonly property var blockchainNetworksDown: networkConnectionModule.blockchainNetworkConnection.chainIds.split(";") readonly property var blockchainNetworksDown: !!networkConnectionModule.blockchainNetworkConnection.chainIds ? networkConnectionModule.blockchainNetworkConnection.chainIds.split(";") : []
readonly property bool atleastOneBlockchainNetworkAvailable: blockchainNetworksDown.length < networksModule.all.count readonly property bool atleastOneBlockchainNetworkAvailable: blockchainNetworksDown.length < networksModule.all.count
readonly property bool sendBuyBridgeEnabled: localAppSettings.testEnvironment || (isOnline && readonly property bool sendBuyBridgeEnabled: localAppSettings.testEnvironment || (isOnline &&