Lint all the things
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Divider, Form, Select } from "antd";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useMutation } from "@apollo/client";
|
||||
import { Button, Card, Form, Space } from "antd";
|
||||
import axios from "axios";
|
||||
import dayjs from "../../utils/day";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -41,7 +41,7 @@ export function TechClockInContainer({ setTimeTicketContext, technician, bodysho
|
||||
const { t } = useTranslation();
|
||||
const notification = useNotification();
|
||||
|
||||
const emps = bodyshop.employees.filter((e) => e.id === (technician && technician.id))[0];
|
||||
const emps = bodyshop.employees.filter((e) => e.id === technician?.id)[0];
|
||||
|
||||
const TechForm = () => {
|
||||
if (technician) {
|
||||
@@ -89,7 +89,7 @@ export function TechClockInContainer({ setTimeTicketContext, technician, bodysho
|
||||
}
|
||||
});
|
||||
|
||||
if (!!result.errors) {
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("timetickets.errors.clockingin", {
|
||||
message: JSON.stringify(result.errors)
|
||||
|
||||
Reference in New Issue
Block a user