Skip to content

Commit aa250cf

Browse files
committed
fixes
1 parent 3a89419 commit aa250cf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

public/locales/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@
145145
"failedMessage": "Failed to load frontend configuration"
146146
},
147147
"validationErrors": {
148-
"required": "This field is required",
148+
"required": "This field is required!",
149149
"properFormatting": "Use A-Z, a-z, 0-9, hyphen (-), and period (.), but note that whitespace (spaces, tabs, etc.) is not allowed for proper compatibility.",
150-
"max25chars": "Max length is 25 characters"
150+
"max25chars": "Max length is 25 characters.",
151+
"userExists": "User with this email already exists!"
151152
}
152153
}

src/components/Members/EditMembers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const EditMembers: FC<EditMembersProps> = ({
3131
}
3232
// Check if the email is already in the list, highlight as error
3333
if (members.find((m) => m.name === emailInput.current!.value)) {
34-
setValueStateMessage('User with this email already exists!');
34+
setValueStateMessage(t('validationErrors.userExists'));
3535
setHighlightEmail('Negative');
3636
return;
3737
}

0 commit comments

Comments
 (0)