diff --git a/pages/research/permanence-calculator/components/controls/curve.js b/pages/research/permanence-calculator/components/controls/curve.js index 1fc318b7..2aee70d0 100644 --- a/pages/research/permanence-calculator/components/controls/curve.js +++ b/pages/research/permanence-calculator/components/controls/curve.js @@ -21,7 +21,7 @@ const Curve = ({ const [displayValue, setDisplayValue] = useState(value[0][1]) const initializeChart = () => { - const out = new CostCurve( + const out = CostCurve( container, theme, value, diff --git a/pages/research/permanence-calculator/components/timeline.js b/pages/research/permanence-calculator/components/timeline.js index fa66c174..de88a979 100644 --- a/pages/research/permanence-calculator/components/timeline.js +++ b/pages/research/permanence-calculator/components/timeline.js @@ -45,7 +45,7 @@ const Timeline = ({ options }) => { useEffect(() => { if (container.current.offsetWidth > 0) { - chart = new TimelineChart(container, theme) + chart = TimelineChart(container, theme) } return function cleanup() {