Skip to content

Commit 1c3c4bf

Browse files
Parth910abhinavk96
authored andcommitted
fix: phone number compulsory field remove (#3378)
* user profile update:phone number compulsory field remove * fix: phone field made optional * Update user-profile-form.hbs * add optional type and remove emtpy type
1 parent fe7c101 commit 1c3c4bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/components/forms/user-profile-form.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,12 @@ export default Component.extend(FormMixin, {
4444
},
4545
phone: {
4646
identifier : 'phone',
47+
optional : true,
4748
rules : [
48-
{
49-
type : 'empty',
50-
prompt : this.l10n.t('Please enter a phone number.')
51-
},
5249
{
5350
type : 'regExp',
5451
value : validPhoneNumber,
55-
prompt : this.l10n.t('Please enter a valid phone number.')
52+
prompt : this.l10n.t('Please enter a valid phone number')
5653
}
5754
]
5855
}

0 commit comments

Comments
 (0)