diff --git a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx index 5a5f11ef..dfcd7467 100644 --- a/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx +++ b/frontend/src/containers/map/sidebar/main-panel/panels/details/widgets/fishing-protection/index.tsx @@ -114,15 +114,25 @@ const FishingProtectionWidget: FCWithMessages = ({ return parsedFishingProtectionLevelData?.filter(Boolean) ?? []; }, [t, protectionLevelsData, metadata]); - const noData = !widgetChartData.length; - const loading = isFetchingProtectionLevelsData; + const noData = useMemo(() => { + if (!widgetChartData.length) { + return true; + } + + const emptyValues = widgetChartData.every((d) => d.totalArea === Infinity); + if (emptyValues) { + return true; + } + + return false; + }, [widgetChartData]); return ( {widgetChartData.map((chartData) => (