remove unnecessary navigator check

This commit is contained in:
Sam Samskies 2023-02-08 00:14:13 -06:00
parent 4f46f061d2
commit b6204e0b65
No known key found for this signature in database
GPG Key ID: E3F697EE1B6EB156

View File

@ -20,10 +20,6 @@ const getMessages = (locale: string) => {
export const IntlProvider = ({ children }: { children: ReactNode }) => {
const getLocale = () => {
if (typeof navigator === 'undefined') {
return DEFAULT_LOCALE
}
return (
(navigator.languages && navigator.languages[0]) ||
navigator.language ||