diff --git a/pages/api/poll/foursquare.ts b/pages/api/poll/foursquare.ts index 7cac04a..8eae45d 100644 --- a/pages/api/poll/foursquare.ts +++ b/pages/api/poll/foursquare.ts @@ -78,7 +78,7 @@ async function post(req: NextApiRequest, res: NextApiResponse) { if (photo.venue) { const { city, state, country } = photo.venue.location const location = - city && state + city && state && city !== state ? `${city}, ${state}` : city && country ? `${city}, ${country}`