From 490f56b598f2aa3b9186e4c53ebc0edee836cf7f Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Mon, 10 Jun 2024 17:15:47 -0400 Subject: [PATCH] Update fetchDataForPRFSubmission()'s handling of fetched 2023 data to account for when bus record contact data from the BAP doesn't include any Account (org) info --- app/server/app/utilities/formio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/app/utilities/formio.js b/app/server/app/utilities/formio.js index 471892e3..57bbc191 100644 --- a/app/server/app/utilities/formio.js +++ b/app/server/app/utilities/formio.js @@ -260,7 +260,7 @@ function fetchDataForPRFSubmission({ rebateYear, req, res }) { BillingState, BillingPostalCode, County__c, - } = Account; + } = Account || {}; const jsonOrg = frf2023RecordJson.data.organizations.find((org) => { const matchedName = org?.org_orgName?.trim() === orgName?.trim();