diff --git a/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx b/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx index d6d782556..a36c9a856 100644 --- a/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx +++ b/client/src/components/tech-job-clock-out-button/tech-job-clock-out-button.component.jsx @@ -31,17 +31,10 @@ export function TechClockOffButton({ const { t } = useTranslation(); const emps = bodyshop.employees.filter( - (e) => e.id === technician && technician.id + (e) => e.id === (technician && technician.id) )[0]; - console.log( - "emps :>> ", - emps, - "e", - bodyshop && bodyshop.employees, - "tech", - technician - ); + console.log(emps && emps.rates); const handleFinish = async (values) => { logImEXEvent("tech_clock_out_job");