diff --git a/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx b/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx index 62a7a3aec..3da4ca38f 100644 --- a/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx +++ b/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx @@ -36,7 +36,7 @@ export function DmsCustomerSelector({ bodyshop, jobid }) { useEffect(() => { if (Fortellis.treatment === "on") { - const handleFortellisSelectCustomer = (customerList, callback) => { + const handleFortellisSelectCustomer = (customerList) => { setOpen(true); setDmsType("cdk"); setcustomerList(customerList); @@ -46,12 +46,12 @@ export function DmsCustomerSelector({ bodyshop, jobid }) { wsssocket.off("fortellis-select-customer", handleFortellisSelectCustomer); }; } else { - const handleCdkSelectCustomer = (customerList, callback) => { + const handleCdkSelectCustomer = (customerList) => { setOpen(true); setDmsType("cdk"); setcustomerList(customerList); }; - const handlePbsSelectCustomer = (customerList, callback) => { + const handlePbsSelectCustomer = (customerList) => { setOpen(true); setDmsType("pbs"); setcustomerList(customerList); @@ -128,7 +128,7 @@ export function DmsCustomerSelector({ bodyshop, jobid }) { title: t("jobs.fields.dms.address"), key: "address", - render: (record, value) => + render: (record) => `${record.postalAddress?.addressLine1} ${record.postalAddress?.addressLine2 ? `, ${record.postalAddress?.addressLine2}` : ""}, ${record.postalAddress?.city} ${record.postalAddress?.state} ${record.postalAddress?.postalCode} ${ record.postalAddress?.country