Skip to content

Commit

Permalink
Merge pull request #405 from USEPA/feature/update-injected-prf-data
Browse files Browse the repository at this point in the history
Feature/update injected prf data
  • Loading branch information
courtneymyers authored Mar 29, 2024
2 parents a102c4b + 08564cd commit 3923d57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/server/app/utilities/formio.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ function fetchDataForPRFSubmission({ rebateYear, req, res }) {
* If the org has already been added, update org_type as needed
* and and advance to the next org in the loop.
*/
if (array.some((item) => item.org_id === orgId)) {
const org = array.find((item) => item.org_id === orgId);
if (array.some((item) => item._org_id === orgId)) {
const org = array.find((item) => item._org_id === orgId);

if (existingBusOwner) org.org_type.existingBusOwner = true;
if (newBusOwner) org.org_type.newBusOwner = true;
Expand Down Expand Up @@ -413,7 +413,7 @@ function fetchDataForPRFSubmission({ rebateYear, req, res }) {
tribal: Prioritized_as_Tribal__c,
rural: Prioritized_as_Rural__c,
},
_bad_district_contact_id: School_District_Contact__r?.Id,
_bap_district_contact_id: School_District_Contact__r?.Id,
_bap_district_contact_fname: School_District_Contact__r?.FirstName,
_bap_district_contact_lname: School_District_Contact__r?.LastName,
_bap_district_contact_title: School_District_Contact__r?.Title,
Expand Down

0 comments on commit 3923d57

Please sign in to comment.