From bccfc127f307b5a5d9023a49a4a32ad835266de2 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 6 Jun 2023 12:26:26 -0700 Subject: [PATCH] Resolve null line desc issue. --- 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 ba072c67a..2dfe12387 100644 --- a/server/job/job-totals.js +++ b/server/job/job-totals.js @@ -277,7 +277,7 @@ async function CalculateRatesTotals({ job, client }) { amount: Math.round((item.act_price || 0) * 100), }); } - if (item.line_desc.toLowerCase().includes("hazardous waste")) { + if (item.line_desc?.toLowerCase().includes("hazardous waste")) { hasMahwLine = item; }