Add emprty state for device memory

This commit is contained in:
Hristo Nedelkov 2023-08-15 09:19:54 +03:00
parent bbfc4b198d
commit 305d22d90e
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp
</IconText>
{message === 'Poor' && (
<Text size={13} color="#E95460">
{((currentLoad / maxMemory) * 100).toFixed(0)}% Utilization
{((currentLoad / maxMemory || 0) * 100).toFixed(0)}% Utilization
</Text>
)}
</XStack>