diff --git a/src/components/NetworkChart.tsx b/src/components/NetworkChart.tsx index adcc36f..c71d451 100644 --- a/src/components/NetworkChart.tsx +++ b/src/components/NetworkChart.tsx @@ -51,12 +51,12 @@ export function NetworkChart({ if (!monitorData) return ; - if (monitorData?.success && monitorData.data.length === 0) { + if (monitorData?.success && !monitorData.data) { return ( <>

-

+

{t("monitor.noData")}

diff --git a/src/components/ServiceTracker.tsx b/src/components/ServiceTracker.tsx index fda7abb..f27f2fd 100644 --- a/src/components/ServiceTracker.tsx +++ b/src/components/ServiceTracker.tsx @@ -40,7 +40,9 @@ export const ServiceTracker: React.FC = () => { } if (!serviceData?.data?.services) { - return
No service data available
; + return ( +
No service data available
+ ); } return (