diff --git a/frontend/app/components/shared/CountryFlagIcon.tsx b/frontend/app/components/shared/CountryFlagIcon.tsx index a6f54d320..20b3f8ed2 100644 --- a/frontend/app/components/shared/CountryFlagIcon.tsx +++ b/frontend/app/components/shared/CountryFlagIcon.tsx @@ -13,7 +13,7 @@ const CountryFlagIcon: React.FC = ({ countryCode, style }) => return hasFlag(countryCode) && FlagComponent ? ( ) : ( -
N/A
+
N/A
); }; diff --git a/frontend/app/components/ui/CountryFlag/CountryFlag.tsx b/frontend/app/components/ui/CountryFlag/CountryFlag.tsx index a472c8234..d1ec5dbf3 100644 --- a/frontend/app/components/ui/CountryFlag/CountryFlag.tsx +++ b/frontend/app/components/ui/CountryFlag/CountryFlag.tsx @@ -37,33 +37,20 @@ const CountryFlag: FC = ({ // display full geo info, check each part if not null, display as string const fullGeoInfo = [userCity, userState, countryName].filter(Boolean).join(', '); - const renderUnknownCountry = ( -
- -
- Unknown Country -
-
- ); - const renderGeoInfo = displayGeoInfo && ( - - + + ); return ( -
- {knownCountry ? ( - -
- -
-
- ) : ( - renderUnknownCountry - )} +
+ +
+ +
+
{showLabel && renderGeoInfo}
);