Don't display "NaN B" in tenant capacity (#1802)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-04-05 12:16:55 -06:00
committed by GitHub
parent 64ffa039b4
commit d8754a2e3e

View File

@@ -123,7 +123,7 @@ const TenantCapacity = ({
fontSize: 12, fontSize: 12,
}} }}
> >
{niceBytesInt(totalUsedSpace)} {!isNaN(totalUsedSpace) ? niceBytesInt(totalUsedSpace) : "N/A"}
</span> </span>
<div> <div>
<PieChart width={110} height={110}> <PieChart width={110} height={110}>