From 09ce789d4cf8bc60c5c76810dea18d036ec8adf7 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Tue, 6 Apr 2021 15:57:14 -0700 Subject: [PATCH] IO-837 Fix Tech Clocking issue --- .../tech-job-clock-out-button.component.jsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) 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");