@@ -224,17 +224,21 @@ const BlockDetails = ({ query }: Props) => {
224224 </ >
225225 ) }
226226
227- < DetailedInfo . ItemLabel
228- hint = "Size of the block in bytes"
229- isLoading = { isPlaceholderData }
230- >
231- Size
232- </ DetailedInfo . ItemLabel >
233- < DetailedInfo . ItemValue >
234- < Skeleton loading = { isPlaceholderData } >
235- { data . size . toLocaleString ( ) }
236- </ Skeleton >
237- </ DetailedInfo . ItemValue >
227+ { data . size && (
228+ < >
229+ < DetailedInfo . ItemLabel
230+ hint = "Size of the block in bytes"
231+ isLoading = { isPlaceholderData }
232+ >
233+ Size
234+ </ DetailedInfo . ItemLabel >
235+ < DetailedInfo . ItemValue >
236+ < Skeleton loading = { isPlaceholderData } >
237+ { data . size . toLocaleString ( ) }
238+ </ Skeleton >
239+ </ DetailedInfo . ItemValue >
240+ </ >
241+ ) }
238242
239243 < DetailedInfo . ItemLabel
240244 hint = "Date & time at which block was produced."
@@ -623,14 +627,18 @@ const BlockDetails = ({ query }: Props) => {
623627 </ >
624628 ) }
625629
626- < DetailedInfo . ItemLabel
627- hint = { `Block difficulty for ${ validatorTitle } , used to calibrate block generation time` }
628- >
629- Difficulty
630- </ DetailedInfo . ItemLabel >
631- < DetailedInfo . ItemValue overflow = "hidden" >
632- < HashStringShortenDynamic hash = { BigNumber ( data . difficulty ) . toFormat ( ) } />
633- </ DetailedInfo . ItemValue >
630+ { data . difficulty && (
631+ < >
632+ < DetailedInfo . ItemLabel
633+ hint = { `Block difficulty for ${ validatorTitle } , used to calibrate block generation time` }
634+ >
635+ Difficulty
636+ </ DetailedInfo . ItemLabel >
637+ < DetailedInfo . ItemValue overflow = "hidden" >
638+ < HashStringShortenDynamic hash = { BigNumber ( data . difficulty ) . toFormat ( ) } />
639+ </ DetailedInfo . ItemValue >
640+ </ >
641+ ) }
634642
635643 { data . total_difficulty && (
636644 < >
0 commit comments