fix: unrelated changes

This commit is contained in:
jubnl
2026-04-06 20:17:02 +02:00
parent 781861f799
commit a2359dd769
+2 -2
View File
@@ -241,7 +241,7 @@ export async function getStats(userId: number) {
const countries = [...countrySet.values()].map(c => {
const countryTrips = trips.filter(t => c.tripIds.has(t.id));
const dates = countryTrips.map(t => t.start_date).filter(Boolean).sort((a, b) => a.localeCompare(b));
const dates = countryTrips.map(t => t.start_date).filter(Boolean).sort();
return {
code: c.code,
placeCount: c.places.length,
@@ -272,7 +272,7 @@ export async function getStats(userId: number) {
}
}
const mostVisited = countries.length > 0 ? countries.reduce((a, b) => a.placeCount > b.placeCount ? a : b, countries[0]) : null;
const mostVisited = countries.length > 0 ? countries.reduce((a, b) => a.placeCount > b.placeCount ? a : b) : null;
const continents: Record<string, number> = {};
countries.forEach(c => {