diff --git a/src/components/Locale/Locale.tsx b/src/components/Locale/Locale.tsx index 600b5e54e..0a83cc640 100644 --- a/src/components/Locale/Locale.tsx +++ b/src/components/Locale/Locale.tsx @@ -151,10 +151,12 @@ function getMatchingLocale(): Locale { } } } + + return undefined; } const LocaleProvider: React.FC = ({ children }) => { - const [locale] = React.useState(getMatchingLocale()); + const [locale] = React.useState(getMatchingLocale() || defaultLocale); return (