Lint all the things
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
@@ -17,7 +16,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
|
||||
const [updateJob] = useMutation(UPDATE_JOB);
|
||||
const notification = useNotification();
|
||||
|
||||
const handleCancel = async ({ id, lost_sale_reason }) => {
|
||||
const handleCancel = async ({ lost_sale_reason }) => {
|
||||
logImEXEvent("schedule_cancel_appt");
|
||||
|
||||
const cancelAppt = await cancelAppointment({
|
||||
@@ -27,7 +26,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
|
||||
message: t("appointments.successes.canceled")
|
||||
});
|
||||
|
||||
if (!!cancelAppt.errors) {
|
||||
if (cancelAppt.errors) {
|
||||
notification["error"]({
|
||||
message: t("appointments.errors.canceling", {
|
||||
message: JSON.stringify(cancelAppt.errors)
|
||||
@@ -59,7 +58,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
|
||||
})
|
||||
);
|
||||
}
|
||||
if (!!jobUpdate.errors) {
|
||||
if (jobUpdate.errors) {
|
||||
notification["error"]({
|
||||
message: t("jobs.errors.updating", {
|
||||
message: JSON.stringify(jobUpdate.errors)
|
||||
|
||||
Reference in New Issue
Block a user