What is wrong with the following code? I have tried many options given in the link.
{
!hideCurrentLocation && (
{currentLocation?.city}
{currentLocation?.city && ', '}
{currentLocation?.country_code2}
)
}
It is giving error on line {currentLocation?.city} that a comma is required.