Signed-off-by: Thomas Evans <tevans3@icloud.com>
@@ -155,7 +155,9 @@ const CloudCost = ({ cumulativeData, totalData, graphData, currency }) => {
>
{cell.id === "kubernetesPercent"
? round(totalData[cell.id] * 100, 2) + "%"
- : totalData[cell.id]}
+ : isNaN(totalData[cell.id])
+ ? "Totals"
+ : toCurrency(round(totalData[cell.id]), currency)}
</TableCell>
);
})}
@@ -169,7 +169,7 @@ const CloudCostReports = () => {
React.useEffect(() => {
setFetch(true);
setTitle(generateTitle({ window, aggregateBy, costMetric }));
- }, [window, aggregateBy, costMetric, fetch]);
+ }, [window, aggregateBy, costMetric]);
return (
<Page active="cloud.html">