diff --git a/front_end/src/Apps/Payroll.jsx b/front_end/src/Apps/Payroll.jsx index 01f67dcf..16e97909 100644 --- a/front_end/src/Apps/Payroll.jsx +++ b/front_end/src/Apps/Payroll.jsx @@ -13,6 +13,7 @@ import EditPayModifier from "../Components/EditPayroll/EditPayModifier"; const initialPayrollState = []; const initialVacanciesState = []; +const initialPayModifiersState = []; export default function Payroll() { const [allPayroll, dispatch] = useReducer( @@ -23,6 +24,10 @@ export default function Payroll() { vacanciesReducer, initialVacanciesState, ); + const [payModifiers, dispatchPayModifiers] = useReducer( + payModifiersReducer, + initialPayModifiersState, + ); const [saveSuccess, setSaveSuccess] = useState(false); useEffect(() => { @@ -36,6 +41,9 @@ export default function Payroll() { api .getVacancyData() .then((data) => dispatchVacancies({ type: "fetched", data })); + api + .getPayModifierData() + .then((data) => dispatchPayModifiers({ type: "fetched", data })); }, []); // Computed properties @@ -116,7 +124,7 @@ export default function Payroll() { - +