mirror of https://github.com/stashapp/stash.git
Use alpha2 for country label (#3067)
This commit is contained in:
parent
270bc317cb
commit
f25881a3bf
|
@ -11,7 +11,9 @@ interface IProps {
|
|||
const CountryLabel: React.FC<IProps> = ({ country, showFlag = true }) => {
|
||||
const { locale } = useIntl();
|
||||
|
||||
const fromISO = getCountryByISO(country, locale);
|
||||
// #3063 - use alpha2 values only
|
||||
const fromISO =
|
||||
country?.length === 2 ? getCountryByISO(country, locale) : undefined;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue