Skip to content

Commit

Permalink
hide blockNumberCheckSum if it is not there
Browse files Browse the repository at this point in the history
  • Loading branch information
mjadach-iv committed Jan 15, 2025
1 parent 84feea6 commit 53bd4c9
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions src/pages/node/info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,28 +349,33 @@ function InfoPage() {
</th>
<td>{blockNumber ? blockNumber : '-'}</td>
</tr>
<tr>
<th>
<Tooltip
title="Last indexed block from the chain which contains HOPR data"
notWide
>
<span>Last indexed block</span>
</Tooltip>
</th>
<td>{blockNumberIndexedWithHOPRdata ? blockNumberIndexedWithHOPRdata : '-'}</td>
</tr>
<tr>
<th>
<Tooltip
title="The latest hash of the node database"
notWide
>
<span>Block checksum</span>
</Tooltip>
</th>
<td>{blockNumberCheckSum ? blockNumberCheckSum : '-'}</td>
</tr>
{(blockNumberIndexedWithHOPRdata || blockNumberCheckSum) && (
<>
<tr>
<th>
<Tooltip
title="Last indexed block from the chain which contains HOPR data"
notWide
>
<span>Last indexed block</span>
</Tooltip>
</th>
<td>{blockNumberIndexedWithHOPRdata ? blockNumberIndexedWithHOPRdata : '-'}</td>
</tr>

<tr>
<th>
<Tooltip
title="The latest hash of the node database"
notWide
>
<span>Block checksum</span>
</Tooltip>
</th>
<td>{blockNumberCheckSum ? blockNumberCheckSum : '-'}</td>
</tr>
</>
)}
</tbody>
</TableExtended>

Expand Down

0 comments on commit 53bd4c9

Please sign in to comment.