From c8beacc0d2a01f22b34c597f711edaacd4dd55dc Mon Sep 17 00:00:00 2001 From: Pham Tu Date: Thu, 18 Jan 2024 11:10:11 +0700 Subject: [PATCH] fix chainid --- src/layouts/components/ChainProfile.vue | 36 ++++++++++++++++--------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/layouts/components/ChainProfile.vue b/src/layouts/components/ChainProfile.vue index caecee91..6c535e3f 100644 --- a/src/layouts/components/ChainProfile.vue +++ b/src/layouts/components/ChainProfile.vue @@ -17,9 +17,10 @@ function changeEndpoint(item: Endpoint) {
@@ -32,11 +33,14 @@ function changeEndpoint(item: Endpoint) { " class="capitalize whitespace-nowrap text-base font-semibold text-gray-600 dark:text-gray-200 hidden md:!block" > - {{ + {{ baseStore.latest?.block?.header?.height ? `#${baseStore.latest.block.header.height}` - : chainStore.chainName || '' - }} {{ baseStore.connected ? '' : 'disconnected' }} + : chainStore.chainName || '' + }} + {{ + baseStore.connected ? '' : 'disconnected' + }}