fix: tw flag not available on some devices

This commit is contained in:
hamster1963 2024-10-11 15:13:43 +08:00
parent 0fc2963c72
commit bfd88f18ab

View File

@ -24,6 +24,10 @@ export default function ServerFlag({ country_code }: { country_code: string }) {
if (!country_code) return null; if (!country_code) return null;
if (supportsEmojiFlags && country_code.toLowerCase() === "tw") {
country_code = "cn";
}
return ( return (
<span className="text-[12px] text-muted-foreground"> <span className="text-[12px] text-muted-foreground">
{!supportsEmojiFlags ? ( {!supportsEmojiFlags ? (