diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 0aee22c5..0ae51fef 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -41,11 +41,10 @@ onMounted(() => { }); const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]); +const currName = ref("") blockchain.$subscribe((m, s) => { - if ( - !Array.isArray(m.events) && - ['chainName', 'endpoint'].includes(m.events?.key || "") - ) { + if (s.chainName !== currName.value) { + currName.value = s.chainName store.loadDashboard(); walletStore.loadMyAsset(); paramStore.handleAbciInfo() @@ -335,13 +334,13 @@ const color = computed(() => {