Added fallback in case country code not found.

This commit is contained in:
Mike Cao committed 2023-04-25 12:35:09 -07:00
1 parent 9e11866ddd
commit b6f3f57455
3 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ export function CountriesTable({ websiteId, ...props }) {
value={countryNames[code] && code}
label={countryNames[code]}
>
<img src={`/images/flags/${code.toLowerCase()}.png`} alt={code} />
<img src={`/images/flags/${code?.toLowerCase() || 'xx'}.png`} alt={code} />
</FilterLink>
);
}