From 2926d805ec092c7ea38d6052ccbdf2dd02cfa84f Mon Sep 17 00:00:00 2001 From: eatyourpeas Date: Sat, 15 Jun 2024 13:02:33 +0100 Subject: [PATCH] revert default toggles disabled in debugging step --- src/CentileChart/CentileChart.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CentileChart/CentileChart.tsx b/src/CentileChart/CentileChart.tsx index 5a6f08c..d3e7e86 100644 --- a/src/CentileChart/CentileChart.tsx +++ b/src/CentileChart/CentileChart.tsx @@ -101,9 +101,8 @@ function CentileChart({ }: CentileChartProps) { const [userDomains, setUserDomains] = useState(null); - const [storedChildMeasurements, setStoredChildMeasurements] = useState(childMeasurements) - const { defaultShowCorrected, defaultShowChronological, showToggle } = { defaultShowCorrected: true, defaultShowChronological: false, showToggle: true }; - // const { defaultShowCorrected, defaultShowChronological, showToggle } = defaultToggles(childMeasurements); + const [storedChildMeasurements, setStoredChildMeasurements] = useState(childMeasurements); + const { defaultShowCorrected, defaultShowChronological, showToggle } = defaultToggles(childMeasurements); const [showChronologicalAge, setShowChronologicalAge] = useState(defaultShowChronological); const [showCorrectedAge, setShowCorrectedAge] = useState(defaultShowCorrected); const chartRef=useRef();