From c5f5a415bcfcd61137f86fc9a1412ae2e197d054 Mon Sep 17 00:00:00 2001 From: Cameron Bowler Date: Thu, 14 Nov 2024 12:48:44 -0800 Subject: [PATCH] Fixes Create New Permit Validation --- ppr-ui/package-lock.json | 4 ++-- ppr-ui/package.json | 2 +- .../src/composables/mhrInformation/useMhrInfoValidation.ts | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ppr-ui/package-lock.json b/ppr-ui/package-lock.json index 6171f4a12..0221e6bc1 100644 --- a/ppr-ui/package-lock.json +++ b/ppr-ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "ppr-ui", - "version": "3.3.3", + "version": "3.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ppr-ui", - "version": "3.3.3", + "version": "3.3.4", "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 b25ca8e68..ba35ad562 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "3.3.3", + "version": "3.3.4", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", diff --git a/ppr-ui/src/composables/mhrInformation/useMhrInfoValidation.ts b/ppr-ui/src/composables/mhrInformation/useMhrInfoValidation.ts index e13ab4099..01c675ad2 100644 --- a/ppr-ui/src/composables/mhrInformation/useMhrInfoValidation.ts +++ b/ppr-ui/src/composables/mhrInformation/useMhrInfoValidation.ts @@ -31,7 +31,8 @@ export const useMhrInfoValidation = (validationState: mhrInfoValidationStateIF) isAmendLocationActive, isCancelChangeLocationActive, hasAmendmentChanges, - isActiveHomeOutsideBc + isActiveHomeOutsideBc, + isNewPermitActive } = useTransportPermits() @@ -108,7 +109,7 @@ export const useMhrInfoValidation = (validationState: mhrInfoValidationStateIF) } else { return ( (isRoleStaffReg.value ? validationState.isDocumentIdValid : true) && - (isAmendLocationActive.value ? true : validationState.isLocationChangeTypeValid) && + ((isAmendLocationActive.value || isNewPermitActive.value) ? true : validationState.isLocationChangeTypeValid) && validationState.isHomeLocationTypeValid && validationState.isHomeCivicAddressValid && validationState.isHomeLandOwnershipValid &&