Add emprty state for device memory
This commit is contained in:
parent
bbfc4b198d
commit
305d22d90e
|
@ -75,7 +75,7 @@ const DeviceMemoryHealth = ({ currentMemory, maxMemory }: DeviceMemoryHealthProp
|
||||||
</IconText>
|
</IconText>
|
||||||
{message === 'Poor' && (
|
{message === 'Poor' && (
|
||||||
<Text size={13} color="#E95460">
|
<Text size={13} color="#E95460">
|
||||||
{((currentLoad / maxMemory) * 100).toFixed(0)}% Utilization
|
{((currentLoad / maxMemory || 0) * 100).toFixed(0)}% Utilization
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
</XStack>
|
</XStack>
|
||||||
|
|
Loading…
Reference in New Issue