Display locale code instead of name when name is not defined (#9888)

This commit is contained in:
Marvin Frachet 2021-03-30 16:59:24 +02:00 committed by GitHub
parent a19fbdc972
commit 1efc84a37e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,9 @@ const LocalePicker = () => {
return (
<ListItem key={locale.id}>
<button onClick={() => handleClick(locale)} type="button">
<EllipsisParagraph width="200px">{locale.name}</EllipsisParagraph>
<EllipsisParagraph width="200px">
{locale.name || locale.code}
</EllipsisParagraph>
</button>
</ListItem>
);