Skip to content

Commit

Permalink
Merge pull request #414 from MapsPeople/bugfix/sort-venues-by-display…
Browse files Browse the repository at this point in the history
…-name

fix: Correct venue sorting to use display name instead of administrat…
  • Loading branch information
Lucaci-Andrei authored Nov 29, 2024
2 parents 6e86c37 + e5f7f64 commit 259dc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/map-template/src/hooks/useCurrentVenue.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const useCurrentVenue = () => {
}

// Else take first venue sorted alphabetically
return [...venuesInSolution].sort(function (a, b) { return (a.name > b.name) ? 1 : ((b.name > a.name) ? -1 : 0); })[0];
return [...venuesInSolution].sort(function (a, b) { return (a.venueInfo.name > b.venueInfo.name) ? 1 : ((b.venueInfo.name > a.venueInfo.name) ? -1 : 0); })[0];
};

/**
Expand Down

0 comments on commit 259dc36

Please sign in to comment.