Merge pull request #237 from vegaprotocol/feat/232-collapse-block-with-no-txs

Feat / 232 collapse block with no txs
This commit is contained in:
Edd 2022-04-11 13:44:34 +01:00 committed by GitHub
commit 5ec6759ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ export const TxsPerBlock = ({ blockHeight }: TxsPerBlockProps) => {
return (
<RenderFetched error={error} loading={loading} className="text-body-large">
{decodedBlockData && decodedBlockData.length ? (
{decodedBlockData && decodedBlockData.length > 0 ? (
<div className="overflow-x-auto whitespace-nowrap mb-28">
<Table>
<thead>
@ -76,7 +76,7 @@ export const TxsPerBlock = ({ blockHeight }: TxsPerBlockProps) => {
</Table>
</div>
) : (
<div className="font-mono mb-28">
<div className="sr-only">
{t(`No transactions in block ${blockHeight}`)}
</div>
)}