Merge pull request #145 from hodovani/patch-1

Remove comparing a string and a number
This commit is contained in:
Eric Herbrandson
2020-10-02 10:18:29 -05:00
committed by GitHub
+1 -1
View File
@@ -151,7 +151,7 @@ function percent(node: Node, used: number | string | null, resource: ResourceTyp
const result = unparser(used);
const available = getNodeResourcesAvailable(node, resource);
const displayPercent = available ? _.round(Number(used) / available * 100, 1) : '';
const displayPercent = available ? _.round(Number(used) / available * 100, 1) : 0;
const className = displayPercent >= 85 ? 'contentPanel_warn' : undefined;
return (