diff --git a/src/views/components/OperationModal/index.vue b/src/views/components/OperationModal/index.vue index ec9f2194..3e4bf2ba 100644 --- a/src/views/components/OperationModal/index.vue +++ b/src/views/components/OperationModal/index.vue @@ -308,7 +308,7 @@ export default { selectedChain() { let config = null const allChains = localStorage.getItem('chains') - if (allChains) { + if (allChains && this.selectedChainName) { config = JSON.parse(allChains)[this.selectedChainName] } return config