diff --git a/src/views/ConsensusStates.vue b/src/views/ConsensusStates.vue index 5bf173d2..47ac6485 100644 --- a/src/views/ConsensusStates.vue +++ b/src/views/ConsensusStates.vue @@ -94,7 +94,6 @@ size="sm" /> Not Signed - @@ -131,7 +130,6 @@ export default { data() { const chains = getLocalChains() - const selected = 'agoric' return { navs: [ { @@ -142,16 +140,22 @@ export default { }, ], showPrevote: false, - rpc: `${chains[selected].rpc[0]}/consensus_state`, httpstatus: 200, httpStatusText: '', roundState: {}, - selected, chains, vals: [], positions: [], } }, + computed: { + selected() { + return this.$route.query.chain || this.chains[Object.keys(this.chains)[0]].chain_name + }, + rpc() { + return `${this.chains[this.selected].rpc[0]}/consensus_state` + }, + }, created() { this.validators() },