diff --git a/src/modules/Blocks/components/Detail/index.tsx b/src/modules/Blocks/components/Detail/index.tsx index 351421d..ef27d77 100644 --- a/src/modules/Blocks/components/Detail/index.tsx +++ b/src/modules/Blocks/components/Detail/index.tsx @@ -262,20 +262,33 @@ class Index extends PureComponent { ]; if (network === 'vega' || network === 'halley') { - columns.push( - [t('block.ParentsHash'), - header.parents_hash.map((hash: string) => ( - - )) - ], - [t('block.DaaScore'),formatNumber(block.daa_score)], - [t('block.HeightgroupIndex'),formatNumber(block.heightgroup_index)], - [t('block.MergedBlueset'), - block.merged_blueset.map((hash: string) => ( - - )) - ] - ); + if (header.parents_hash !== null && header.parents_hash !== undefined) { + columns.push( + [t('block.ParentsHash'), + header.parents_hash.map((hash: string) => ( + + )) + ] + ); + } + + if (block.daa_score !== null && block.daa_score !== undefined) { + columns.push([t('block.DaaScore'),formatNumber(block.daa_score)]); + } + + if (block.heightgroup_index !== null && block.heightgroup_index !== undefined) { + columns.push([t('block.HeightgroupIndex'),formatNumber(block.heightgroup_index)]); + } + + if (block.merged_blueset !== null && block.merged_blueset !== undefined) { + columns.push( + [t('block.MergedBlueset'), + block.merged_blueset.map((hash: string) => ( + + )), + ], + ); + } } else { columns.push( [t('block.ParentHash'),