forked from LaconicNetwork/cosmos-explorer
fix events
This commit is contained in:
@@ -44,7 +44,7 @@ const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]);
|
||||
blockchain.$subscribe((m, s) => {
|
||||
if (
|
||||
!Array.isArray(m.events) &&
|
||||
['chainName', 'endpoint'].includes(m.events.key)
|
||||
['chainName', 'endpoint'].includes(m.events?.key || "")
|
||||
) {
|
||||
store.loadDashboard();
|
||||
walletStore.loadMyAsset();
|
||||
|
||||
@@ -11,7 +11,7 @@ const baseStore = useBaseStore()
|
||||
const endpoint = ref(chainStore.current?.endpoints?.rest?.at(0)?.address)
|
||||
|
||||
const chainId = computed(() => baseStore.latest?.block?.header?.chain_id || "")
|
||||
const chainName = computed(() => chainStore?.chainName || "")
|
||||
const chainName = computed(() => chainStore?.current?.prettyName || "")
|
||||
const hdPath = computed(() => {
|
||||
return `m/44'/${ chainStore.current?.coinType }/0'/0/0`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user