From 303458e431a5e2692c23da7d5697368c9f5d1fb8 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 11 Sep 2021 19:30:19 -0300 Subject: [PATCH] Bugfix: workaround for https://github.com/ethers-io/ethers.js/issues/2036 --- src/Block.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Block.tsx b/src/Block.tsx index caa309b..7f9e552 100644 --- a/src/Block.tsx +++ b/src/Block.tsx @@ -165,7 +165,9 @@ const Block: React.FC = () => { - {commify(block.difficulty)} + + {block.difficulty ? commify(block.difficulty) : "?"} + {commify(block.totalDifficulty.toString())}