Skip to content

Commit

Permalink
Fixes Create New Permit Validation (bcgov#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Nov 14, 2024
1 parent 6f73fca commit a9f86a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "3.3.3",
"version": "3.3.4",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
5 changes: 3 additions & 2 deletions ppr-ui/src/composables/mhrInformation/useMhrInfoValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const useMhrInfoValidation = (validationState: mhrInfoValidationStateIF)
isAmendLocationActive,
isCancelChangeLocationActive,
hasAmendmentChanges,
isActiveHomeOutsideBc
isActiveHomeOutsideBc,
isNewPermitActive
} = useTransportPermits()


Expand Down Expand Up @@ -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 &&
Expand Down

0 comments on commit a9f86a3

Please sign in to comment.