Skip to content

Commit

Permalink
chore: display language select only if multiple languages exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ariansobczak-rst committed Mar 1, 2023
1 parent aec39d1 commit 46f524f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const LanguageSelect: FC = () => {
setStoredLocale(lng)
}, [])

if (!availableLanguages.length) {
if (!availableLanguages.length || availableLanguages.length === 1) {
return null
}

return (
<Box flex alignItems="center">
<DropDown>
<DropDownTrigger>
<Button>
<Button color="text">
<Icon icon="Globe" />
{storedLocale}
</Button>
Expand Down

0 comments on commit 46f524f

Please sign in to comment.