diff --git a/js/libs/ui-shared/src/user-profile/LocaleSelector.tsx b/js/libs/ui-shared/src/user-profile/LocaleSelector.tsx index a94624880c..2c9d0cc125 100644 --- a/js/libs/ui-shared/src/user-profile/LocaleSelector.tsx +++ b/js/libs/ui-shared/src/user-profile/LocaleSelector.tsx @@ -23,7 +23,9 @@ export const LocaleSelector = ({ key: locale, value: localeToDisplayName(locale) || "", })); - + if (!locales.length) { + return null; + } return (