diff --git a/src/modules/[chain]/block/[height].vue b/src/modules/[chain]/block/[height].vue index 41da0e74..68c00340 100644 --- a/src/modules/[chain]/block/[height].vue +++ b/src/modules/[chain]/block/[height].vue @@ -20,12 +20,20 @@ const height = computed(() => { return Number(current.value.block?.header?.height || props.height || 0); }); +const commit = computed(()=>{ + const lastCommit = current.value.block?.lastCommit; + if(lastCommit){ + Object.assign(lastCommit,{signatures : lastCommit.signatures.filter(c=>c.signature)}) + } + return lastCommit; +}) + const isFutureBlock = computed({ get: () => { const latest = store.latest?.block?.header.height const isFuture = latest ? target.value > Number(latest) : true if (!isFuture && !current.value.blockId) store.fetchBlock(target.value).then(x => { - current.value = x; + current.value = x; }) return isFuture }, @@ -58,7 +66,7 @@ function updateTarget() { onBeforeRouteUpdate(async (to, from, next) => { if (from.path !== to.path) { store.fetchBlock(String(to.params.height)).then(x => { - current.value = x; + current.value = x; }); next(); } @@ -140,7 +148,7 @@ onBeforeRouteUpdate(async (to, from, next) => {

{{ $t('block.last_commit') }}

- +
diff --git a/src/modules/[chain]/staking/[validator].vue b/src/modules/[chain]/staking/[validator].vue index ff178bb1..5009bd6a 100644 --- a/src/modules/[chain]/staking/[validator].vue +++ b/src/modules/[chain]/staking/[validator].vue @@ -870,10 +870,3 @@ function mapDelegators(messages: any[]) { - -