Hide location if null

This commit is contained in:
MartinBraquet
2025-09-12 01:57:22 +02:00
parent e26d551263
commit d691129842

View File

@@ -18,7 +18,7 @@ export default function LoverPrimaryInfo(props: { lover: Lover }) {
return (
<Row className="text-ink-700 gap-4 text-sm">
<IconWithInfo
text={`${lover.city}, ${stateOrCountry}`}
text={`${lover.city ?? ''}, ${stateOrCountry ?? ''}`}
icon={<IoLocationOutline className="h-4 w-4" />}
/>
<IconWithInfo