Skip to content

Commit

Permalink
chore: 🗑️ removes unused 'letter_symbol' variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheer-deriv committed Mar 8, 2023
1 parent 67d531f commit 4bbe640
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/core/src/Constants/form-error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const FORM_ERROR_MESSAGES = {
}),
email: () => localize('Invalid email address.'),
general: () => localize('Only letters, numbers, space, hyphen, period, and apostrophe are allowed.'),
letter_symbol: () => localize('Letters, spaces, periods, hyphens, apostrophes only'),
name: () => localize('Letters, spaces, periods, hyphens, apostrophes only.'),
password: () => localize('Password should have lower and uppercase English letters with numbers.'),
po_box: () => localize('P.O. Box is not accepted in address'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ const initPreBuildDVRs = () => ({
message: form_error_messages.general,
},
length: { func: validLength, message: '' }, // Message will be set in validLength function on initiation
letter_symbol: {
func: validLetterSymbol,
message: form_error_messages.letter_symbol,
},
name: {
func: validName,
message: form_error_messages.name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export type TFormErrorMessagesTypes = Record<
| 'barrier'
| 'email'
| 'general'
| 'letter_symbol'
| 'name'
| 'password'
| 'po_box'
Expand Down

0 comments on commit 4bbe640

Please sign in to comment.