fix: update dependencies to latest

This commit is contained in:
Divlo
2023-01-10 21:23:32 +01:00
parent 54ef5ceea1
commit cdff824ca5
15 changed files with 3370 additions and 18187 deletions

View File

@ -13,7 +13,7 @@ const getErrorTranslationKey = (error: Error): string => {
return 'common:required'
}
if (error.keyword === 'format') {
if (error.params.format === 'email') {
if (error.params['format'] === 'email') {
return 'common:invalid-email'
}
return 'common:invalid'
@ -32,7 +32,7 @@ export const useFormTranslation = () => {
if (error != null) {
return t(getErrorTranslationKey(error)).replace(
'{expected}',
error?.params?.limit
error?.params?.['limit']
)
}
return undefined