Skip to content

Commit

Permalink
Merge pull request #1 from xops/fix/0-undefined-vals
Browse files Browse the repository at this point in the history
fix: allow values to be 0
  • Loading branch information
shanejonas authored Feb 20, 2021
2 parents 89855ad + 7b483be commit 3759cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default (props: any) => {
erpc.eth_gasPrice().then(setGasPrice);
}, [erpc]);

if (!blocks || !chainId || !gasPrice || !peerCount) {
if (blocks === undefined || chainId === undefined || gasPrice === undefined || peerCount === undefined) {
return <CircularProgress />;
}

Expand Down

0 comments on commit 3759cc7

Please sign in to comment.