We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c14c9 commit 845d76bCopy full SHA for 845d76b
src/providers/YupLocaleProvider.tsx
@@ -13,7 +13,10 @@ const YupLocaleProvider: FC<YupLocaleProviderProps> = ({
13
children,
14
}) => {
15
if (languages[locale]) {
16
- yup.setLocale(languages[locale].yupLocale!);
+ const yupLocale = languages[locale].yupLocale;
17
+ if (yupLocale) {
18
+ yup.setLocale(yupLocale);
19
+ }
20
}
21
22
return <>{children}</>;
0 commit comments