IO-837 Fix Tech Clocking issue

This commit is contained in:
Patrick Fic
2021-04-06 15:57:14 -07:00
parent 5b17bfaaa0
commit 09ce789d4c

View File

@@ -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");