Skip to content

Commit

Permalink
24605 additional address field error when editing nr (bcgov#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
EPortman authored and meawong committed Jan 3, 2025
1 parent 9fec1a3 commit 5156bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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.13",
"version": "5.5.14",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
9 changes: 3 additions & 6 deletions app/src/components/common/applicant-info-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<v-text-field
id="firstname"
:messages="messages['firstName']"
:rules="firstMiddleNameRules"
:rules="maxCharRules"
:value="applicant.firstName"
dense
filled
Expand Down Expand Up @@ -65,7 +65,7 @@
id="middlename"
:messages="messages['middleName']"
:value="applicant.middleName"
:rules="firstMiddleNameRules"
:rules="maxCharRules"
dense
filled
height="50"
Expand Down Expand Up @@ -594,16 +594,13 @@ export default class ApplicantInfo1 extends Mixins(ActionMixin) {
v => !!v || 'Required field',
v => (!v || v.length <= 50) || 'Cannot exceed 50 characters'
]
firstMiddleNameRules = [
maxCharRules = [
v => (!v || v.length <= 50) || 'Cannot exceed 50 characters'
]
requiredRules = [
v => !!v || 'Required field',
v => (v.length <= 50) || 'Cannot exceed 50 characters'
]
maxCharRules = [
v => (v.length <= 50) || 'Cannot exceed 50 characters'
]
showAddressMenu = false
async mounted () {
Expand Down

0 comments on commit 5156bbf

Please sign in to comment.