0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

fix(console): redirectUri input error message should be displayed properly (#4440)

This commit is contained in:
Charles Zhao 2023-09-06 23:23:21 +08:00 committed by GitHub
parent f1ded1168b
commit edfb0e9950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ function UriInputField({ name, defaultValue }: Props) {
defaultValue={defaultValueArray} defaultValue={defaultValueArray}
rules={{ rules={{
validate: createValidatorForRhf({ validate: createValidatorForRhf({
required: t('errors.required_field_missing_plural', { field: title }), required: t('errors.required_field_missing_plural', { field: t(title) }),
pattern: { pattern: {
verify: (value) => !value || uriValidator(value), verify: (value) => !value || uriValidator(value),
message: t('errors.invalid_uri_format'), message: t('errors.invalid_uri_format'),