From 77b72e160b8327cf1e739c6dc311330ea47bf531 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 17 May 2023 14:47:06 -0700 Subject: [PATCH 1/2] Update noticeable widget to Rome Online. --- client/src/pages/manage/manage.page.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/manage/manage.page.component.jsx b/client/src/pages/manage/manage.page.component.jsx index 1ab58f2f7..879b487bc 100644 --- a/client/src/pages/manage/manage.page.component.jsx +++ b/client/src/pages/manage/manage.page.component.jsx @@ -188,7 +188,7 @@ const mapStateToProps = createStructuredSelector({ export function Manage({ match, conflict, bodyshop }) { const { t } = useTranslation(); useEffect(() => { - const widgetId = "IABVNO4scRKY11XBQkNr"; + const widgetId = "mQdqARMzkZRUVugJ6TdS"; window.noticeable.render("widget", widgetId); try { requestForToken(); From a93bcd6ab6afe03db6f8c36bef7788833c1f4a3b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 17 May 2023 15:19:11 -0700 Subject: [PATCH 2/2] Resolve calculation issue for private jobs. --- server/job/job-totals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/job/job-totals.js b/server/job/job-totals.js index f11419376..ba072c67a 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -368,7 +368,7 @@ async function CalculateRatesTotals({ job, client }) { rates_subtotal = rates_subtotal.add(ret[property].total); } - const stlMahw = job.cieca_stl.data.find((c) => c.ttl_typecd === "MAHW"); + const stlMahw = job.cieca_stl?.data.find((c) => c.ttl_typecd === "MAHW"); if ( stlMahw &&