From 83de206e9e08bbc61414b30aa52f471cea4b75fe Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Wed, 28 Sep 2022 14:20:28 -0700 Subject: [PATCH] Simply don't print zero (#954) --- web/components/charts/contract/binary.tsx | 2 +- web/components/charts/contract/choice.tsx | 2 +- web/components/charts/contract/numeric.tsx | 2 +- web/components/charts/contract/pseudo-numeric.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/components/charts/contract/binary.tsx b/web/components/charts/contract/binary.tsx index 6d906998..8f0f8c9a 100644 --- a/web/components/charts/contract/binary.tsx +++ b/web/components/charts/contract/binary.tsx @@ -60,7 +60,7 @@ export const BinaryContractChart = (props: { const yScale = scaleLinear([0, 1], [height - MARGIN_Y, 0]) return (
- {width && ( + {width > 0 && ( - {width && ( + {width > 0 && ( - {width && ( + {width > 0 && ( - {width && ( + {width > 0 && (