diff --git a/web/src/components/MyEMS/dashboard/Dashboard.js b/web/src/components/MyEMS/dashboard/Dashboard.js index 1c613095..1e772e90 100644 --- a/web/src/components/MyEMS/dashboard/Dashboard.js +++ b/web/src/components/MyEMS/dashboard/Dashboard.js @@ -108,7 +108,7 @@ const Dashboard = ({ setRedirect, setRedirectUrl, t }) => { let cardSummaryItem = {} cardSummaryItem['name'] = json['reporting_period_input']['names'][index]; cardSummaryItem['unit'] = json['reporting_period_input']['units'][index]; - cardSummaryItem['subtotal'] = json['reporting_period_input']['subtotals'][index].toFixed(); + cardSummaryItem['subtotal'] = Math.round(json['reporting_period_input']['subtotals'][index]); cardSummaryItem['increment_rate'] = parseFloat(json['reporting_period_input']['increment_rates'][index] * 100).toFixed(2) + "%"; cardSummaryItem['subtotal_per_unit_area'] = json['reporting_period_input']['subtotals_per_unit_area'][index]; inputCardSummaryArray.push(cardSummaryItem); @@ -120,7 +120,7 @@ const Dashboard = ({ setRedirect, setRedirectUrl, t }) => { let cardSummaryItem = {} cardSummaryItem['name'] = json['reporting_period_cost']['names'][index]; cardSummaryItem['unit'] = json['reporting_period_cost']['units'][index]; - cardSummaryItem['subtotal'] = json['reporting_period_cost']['subtotals'][index].toFixed(); + cardSummaryItem['subtotal'] = Math.round(json['reporting_period_cost']['subtotals'][index]); cardSummaryItem['increment_rate'] = parseFloat(json['reporting_period_cost']['increment_rates'][index] * 100).toFixed(2) + "%"; cardSummaryItem['subtotal_per_unit_area'] = json['reporting_period_cost']['subtotals_per_unit_area'][index]; costCardSummaryArray.push(cardSummaryItem);