Bugfix: workaround for https://github.com/ethers-io/ethers.js/issues/2036
This commit is contained in:
parent
08ae32ad91
commit
303458e431
|
@ -165,7 +165,9 @@ const Block: React.FC = () => {
|
||||||
<InfoRow title="Ether Price">
|
<InfoRow title="Ether Price">
|
||||||
<USDValue value={blockETHUSDPrice} />
|
<USDValue value={blockETHUSDPrice} />
|
||||||
</InfoRow>
|
</InfoRow>
|
||||||
<InfoRow title="Difficult">{commify(block.difficulty)}</InfoRow>
|
<InfoRow title="Difficult">
|
||||||
|
{block.difficulty ? commify(block.difficulty) : "?"}
|
||||||
|
</InfoRow>
|
||||||
<InfoRow title="Total Difficult">
|
<InfoRow title="Total Difficult">
|
||||||
{commify(block.totalDifficulty.toString())}
|
{commify(block.totalDifficulty.toString())}
|
||||||
</InfoRow>
|
</InfoRow>
|
||||||
|
|
Loading…
Reference in New Issue