diff --git a/package-lock.json b/package-lock.json index 3ce8df208..d38eb6acb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "name-request", - "version": "5.3.4", + "version": "5.3.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "name-request", - "version": "5.3.4", + "version": "5.3.5", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/breadcrumb": "2.1.24", diff --git a/package.json b/package.json index 4595acf4c..a5414697f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "name-request", - "version": "5.3.4", + "version": "5.3.5", "private": true, "appName": "Name Request UI", "sbcName": "SBC Common Components", diff --git a/src/store/actions.ts b/src/store/actions.ts index 45434ea92..2d2adad35 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -489,14 +489,15 @@ export const resubmit = async ({ commit, getters }): Promise => { // add resubmit NR number (for internal use only - API ignores it) nrTypeData['resubmitNrNum'] = nrData['nrNum'] - + // check against entity types if it should have designation or not : if length returns to be 0 then NR should not have any designation otherwise work as getNameDesignation + const checkEntityType = Designations[nrData['entity_type_cd']].words.length === 0 // clean names data nrTypeData['names'] = nrData.names.map(name => ({ choice: name.choice, consent_words: '', conflict1: '', conflict1_num: '', - designation: getNameDesignation(name), + designation: !checkEntityType ? getNameDesignation(name) : '', name: name.name, name_type_cd: name.name_type_cd }))