Too many brackets. Also, if you're trying to render a "city, countrycode" you need to return a single node for valid JSX. I suggest dumping the city and country code into an array and joining them into a single string.
{!hideCurrentLocation && (
<>
{[currentLocation?.city, currentLocation?.country_code2]
.filter(Boolean)
.join(", ")}
</>
)}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…