SSR-1932 Remove duplicate error message
This commit is contained in:
parent
282965c74e
commit
1ab7940886
2 changed files with 1 additions and 2 deletions
|
|
@ -34,7 +34,6 @@ const errorMessages = Object.freeze({
|
|||
POLICY_NUMBER_REQUIRED: 'Please enter your policy number',
|
||||
POLICY_NUMBER_FORMAT: 'Please enter an alpha-numeric string',
|
||||
PHONE_NUMBER_REQUIRED: 'Please enter your phone number. The format must be ###-###-####',
|
||||
PHONE_NUMBER_FORMAT: 'Please enter your phone number. The format must be ###-###-####',
|
||||
POLICY_ZIP_REQUIRED: 'Please enter your policy ZIP',
|
||||
POLICY_ZIP_FORMAT: 'Please enter a valid ZIP',
|
||||
LOSS_CAUSE_REQUIRED: 'Please enter loss cause',
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ function defineGlobalPhoneNumberRules() {
|
|||
globalRules.PHONE_NUMBER_FORMAT,
|
||||
regex(
|
||||
/^(\([0-9]{3}\)|[0-9]{3}) *[-.]? *[0-9]{3} *[-.]? *[0-9]{4}$/,
|
||||
errorMessages.PHONE_NUMBER_FORMAT
|
||||
errorMessages.PHONE_NUMBER_REQUIRED
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue