added filter to selecting cost centers
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user