From e0de3694110072890f53bc396b79cc5aaf73bf99 Mon Sep 17 00:00:00 2001 From: CameronEYDS <53542131+cameron-eyds@users.noreply.github.com> Date: Thu, 22 Aug 2024 07:57:15 -0700 Subject: [PATCH] lien validation update (#2006) --- ppr-ui/package-lock.json | 4 ++-- ppr-ui/package.json | 2 +- ppr-ui/src/composables/mhrInformation/useMhrInformation.ts | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index c6e429399..46445a77f 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.2.45", + "version": "3.2.46", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.2.45", + "version": "3.2.46", "dependencies": { "@bcrs-shared-components/input-field-date-picker": "^1.0.0", "@lemoncode/fonk": "^1.5.1", diff --git a/ppr-ui/package.json b/ppr-ui/package.json index 9dc41041b..64a97ba28 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.2.45", + "version": "3.2.46", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts b/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts index 922af9fc6..656b77df6 100644 --- a/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts +++ b/ppr-ui/src/composables/mhrInformation/useMhrInformation.ts @@ -308,20 +308,18 @@ export const useMhrInformation = () => { // Get information about the lien to help with styling and functionality const getLienInfo = (): { class: string, msg: string, isSubmissionAllowed: boolean } => { - const isLienRegistrationTypeSA = getLienRegistrationType.value === APIRegistrationTypes.SECURITY_AGREEMENT const routeName = router.currentRoute.value.name - const isQSorSBC: boolean = isRoleQualifiedSupplier.value || isRoleStaffSbc.value if (routeName === RouteNames.MHR_INFORMATION && - (isRoleStaffReg.value || (isLienRegistrationTypeSA && isQSorSBC))) { + (isRoleStaffReg.value || (!localState.hasQsTransferOrExemptionBlockingLien && isQSorSBC))) { return { class: 'warning-msg', msg: LienMessages.defaultWarning, isSubmissionAllowed: true } } else if ((isRoleStaffReg.value && routeName === RouteNames.EXEMPTION_DETAILS) || - (isRoleQualifiedSupplier.value && isLienRegistrationTypeSA && + (isRoleQualifiedSupplier.value && !localState.hasQsTransferOrExemptionBlockingLien && [RouteNames.EXEMPTION_DETAILS, RouteNames.EXEMPTION_REVIEW].includes(routeName as RouteNames) )) { return {