From 39ca62f2ef8ae851586edf219fa26bfbadd40cf9 Mon Sep 17 00:00:00 2001 From: Antonio Contreras LEMONCODE Date: Fri, 16 Aug 2024 10:05:40 +0200 Subject: [PATCH] fix scaleY function --- src/common/components/front-rich-components/pie-chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/components/front-rich-components/pie-chart.tsx b/src/common/components/front-rich-components/pie-chart.tsx index 8b5bba93..11ab97e9 100644 --- a/src/common/components/front-rich-components/pie-chart.tsx +++ b/src/common/components/front-rich-components/pie-chart.tsx @@ -34,7 +34,7 @@ export const PieChartShape = forwardRef( const scaleY = useMemo(() => { return restrictedHeight / PIE_FIX_HEIGHT; - }, [restrictedWidth]); + }, [restrictedHeight]); return (