added filter to selecting cost centers

This commit is contained in:
jfrye122
2023-05-18 17:14:04 -04:00
parent 54a8f1fa53
commit 3114f2fb23

View File

@@ -16,7 +16,7 @@ export const selectSignInError = createSelector(
);
export const selectRates = createSelector(
[selectEmployee],
(employee) => employee?.currentEmployee?.technician?.rates
(employee) => employee.currentEmployee?.technician?.rates?.filter((v) => (v?.cost_center !== "timetickets.labels.shift"))
);
export const selectGettingRates = createSelector(
[selectEmployee],
@@ -24,5 +24,5 @@ export const selectGettingRates = createSelector(
);
export const selectTechnician = createSelector(
[selectEmployee],
(employee) => employee?.currentEmployee?.technician
(employee) => employee.currentEmployee?.technician
);