Skip to content

Commit

Permalink
fix: made street address fields have a maximum of 50 chars (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
EPortman authored Aug 14, 2024
1 parent 462ac23 commit 9ea5aa4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.5.6",
"version": "5.5.7",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
8 changes: 7 additions & 1 deletion app/src/components/common/applicant-info-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
id="1ine2"
ref="Line2"
:messages="messages['Line2']"
:rules="maxCharRules"
:value="applicant.addrLine2"
dense
filled
Expand Down Expand Up @@ -272,6 +273,7 @@
id="line3"
ref="Line3"
:messages="messages['Line3']"
:rules="maxCharRules"
:value="applicant.addrLine3"
dense
filled
Expand Down Expand Up @@ -596,7 +598,11 @@ export default class ApplicantInfo1 extends Mixins(ActionMixin) {
v => (!v || v.length <= 50) || 'Cannot exceed 50 characters'
]
requiredRules = [
v => !!v || 'Required field'
v => !!v || 'Required field',
v => (v.length <= 50) || 'Cannot exceed 50 characters'
]
maxCharRules = [
v => (v.length <= 50) || 'Cannot exceed 50 characters'
]
showAddressMenu = false
Expand Down

0 comments on commit 9ea5aa4

Please sign in to comment.