Skip to content

Commit

Permalink
Update location parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cheung31 committed Jun 30, 2023
1 parent d4ee33e commit 342c575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/poll/foursquare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function post(req: NextApiRequest, res: NextApiResponse<Response>) {
if (photo.venue) {
const { city, state, country } = photo.venue.location
const location =
city && state
city && state && city !== state
? `${city}, ${state}`
: city && country
? `${city}, ${country}`
Expand Down

1 comment on commit 342c575

@vercel
Copy link

@vercel vercel bot commented on 342c575 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.