diff --git a/front_end/src/Components/EditPayroll/ForecastTable/index.jsx b/front_end/src/Components/EditPayroll/ForecastTable/index.jsx index 83bb13b2..1b645975 100644 --- a/front_end/src/Components/EditPayroll/ForecastTable/index.jsx +++ b/front_end/src/Components/EditPayroll/ForecastTable/index.jsx @@ -34,18 +34,11 @@ export default function ForecastTable({ forecast, months }) { {row.natural_account_code} - £{formatMoney(row.apr)} - £{formatMoney(row.may)} - £{formatMoney(row.jun)} - £{formatMoney(row.jul)} - £{formatMoney(row.aug)} - £{formatMoney(row.sep)} - £{formatMoney(row.oct)} - £{formatMoney(row.nov)} - £{formatMoney(row.dec)} - £{formatMoney(row.jan)} - £{formatMoney(row.feb)} - £{formatMoney(row.mar)} + {months.map((month) => ( + + £{formatMoney(row[month.toLowerCase()])} + + ))} ); })}