From 305d22d90eac75f278462790604a2f6102eaa84e Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 15 Aug 2023 09:19:54 +0300 Subject: [PATCH] Add emprty state for device memory --- src/components/DeviceMemoryHealth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DeviceMemoryHealth.tsx b/src/components/DeviceMemoryHealth.tsx index b294f5a0..4797642b 100644 --- a/src/components/DeviceMemoryHealth.tsx +++ b/src/components/DeviceMemoryHealth.tsx @@ -75,7 +75,7 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp {message === 'Poor' && ( - {((currentLoad / maxMemory) * 100).toFixed(0)}% Utilization + {((currentLoad / maxMemory || 0) * 100).toFixed(0)}% Utilization )}