diff --git a/components/u/AvatarWithInfo.tsx b/components/u/AvatarWithInfo.tsx index 7095c20d8..c22b80106 100644 --- a/components/u/AvatarWithInfo.tsx +++ b/components/u/AvatarWithInfo.tsx @@ -13,7 +13,7 @@ import MyLink from "components/common/MyLink"; import SubText from "components/common/SubText"; import UserAvatar from "components/common/UserAvatar"; import WeaponImage from "components/common/WeaponImage"; -import { getEmojiFlag } from "countries-list"; +import { countries, getEmojiFlag } from "countries-list"; import { getFullUsername } from "lib/strings"; import { useMyTheme } from "lib/useMyTheme"; import useUser from "lib/useUser"; @@ -70,12 +70,19 @@ const AvatarWithInfo: React.FC = ({ {getFullUsername(user)} - {user.profile?.country && ( - - {getEmojiFlag(user.profile.country)} - - )} + {user.profile?.country && ( + + + {getEmojiFlag(user.profile.country)}{" "} + + { + Object.entries(countries).find( + ([key]) => key === user.profile!.country + )![1].name + } + + )} {user.profile?.twitterName && (