Skip to content

Commit

Permalink
fix: validations and safety score adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-ey committed Nov 30, 2024
1 parent b91479a commit afaa159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/constants/review-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const INFRASTRUCTURE_REVIEW_QUESTIONS = [
name: 'communityNeedsAndSafetyGuidelinesScore',
},
{
maxScore: 11,
maxScore: 16,
label: 'Section 6: Safety Score',
descriptionList: [
'Section 6 - Q33: Question "The BC Active Transportation Design Guide recommends minimum widths for different types and contexts of active transportation infrastructure (see pg. 15 of the Program Guidelines). Does the proposed infrastructure align with the Design Guide recommendations?" - Only if Local context is selected = 0-4pts (manual)',
Expand Down
2 changes: 1 addition & 1 deletion client/constants/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const INFRASTRUCTURE_REVIEW_VALIDATION_SCHEMA = Yup.object().shape({

safetyScore: Yup.number()
.min(0, minValidationText + '0')
.max(11, maxValidationText + '11')
.max(4, maxValidationText + '4')
.required('This field is required'),

economyAndTourismScore: Yup.number()
Expand Down

0 comments on commit afaa159

Please sign in to comment.