diff --git a/src/router/index.js b/src/router/index.js index dd40ecc6..4f679fec 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -385,13 +385,13 @@ const router = new VueRouter({ router.beforeEach((to, from, next) => { const c = to.params.chain if (c) { - store.commit('select', { chain_name: c }) + store.commit('select', { chain_name: String(c).toLowerCase() }) store.dispatch('chains/getAllIBCDenoms', Vue.prototype) } const config = JSON.parse(localStorage.getItem('chains')) // const has = Object.keys(config).findIndex(i => i === c) - if (!config || Object.keys(config).findIndex(i => i === c) > -1) { + if (!config || Object.keys(config).findIndex(i => i === String(c).toLowerCase()) > -1) { next() } else if (c) { if (c === 'index.php') { diff --git a/src/store/chains/index.js b/src/store/chains/index.js index fd390d1f..d80782d5 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -19,7 +19,7 @@ if (isTestnet()) { const update = {} configs.keys().forEach(k => { const c = configs(k) - update[c.chain_name] = c + update[String(c.chain_name).toLowerCase()] = c }) chains = update