From 782684308e497d8f49fc72209de62c142c938b7b Mon Sep 17 00:00:00 2001 From: Severin Beauvais Date: Thu, 8 Feb 2024 15:37:30 -0800 Subject: [PATCH] - app version = 5.8.11 - delete officer email if it's null --- package-lock.json | 4 ++-- package.json | 2 +- src/mixins/filing-template-mixin.ts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 262b720ee..3964add82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-create-ui", - "version": "5.8.10", + "version": "5.8.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-create-ui", - "version": "5.8.10", + "version": "5.8.11", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/approval-type": "1.0.19", diff --git a/package.json b/package.json index b9d4d9720..4676cd8dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-create-ui", - "version": "5.8.10", + "version": "5.8.11", "private": true, "appName": "Create UI", "sbcName": "SBC Common Components", diff --git a/src/mixins/filing-template-mixin.ts b/src/mixins/filing-template-mixin.ts index 0e3ae9415..3b1ac4967 100644 --- a/src/mixins/filing-template-mixin.ts +++ b/src/mixins/filing-template-mixin.ts @@ -1468,14 +1468,15 @@ export default class FilingTemplateMixin extends Mixins(AmalgamationMixin, DateM } /** - * Fixes addresses by deleting the type in case it was null. + * Fixes addresses by deleting the type in case it is null. Also fixes null officer email. * @param orgPeople The array of orgs/people - * @returns the array of orgs/people after addresses been fixed + * @returns the array of orgs/people with fixed address types and email */ fixNullAddressType (orgPeople: OrgPersonIF[]): OrgPersonIF[] { return orgPeople.map(p => { if (p.deliveryAddress?.addressType === null) delete p.deliveryAddress.addressType if (p.mailingAddress?.addressType === null) delete p.mailingAddress.addressType + if (p.officer?.email === null) delete p.officer.email return p }) }