Simplify popups
Tests / backend-test (pull_request) Successful in 6s
Tests / frontend-test (pull_request) Failing after 7s
Tests / e2e-test (pull_request) Failing after 1m30s

This commit is contained in:
(jenkins)
2026-04-17 00:13:29 +01:00
parent 394394b387
commit 6a2f8856fe
+1 -1
View File
@@ -401,6 +401,7 @@ const APP = () => {
map.getSource('cities').setData(geojson);
};
const getCountryName = (code) => {
try {
const regionNames = new Intl.DisplayNames(['en'], { type: 'region' });
@@ -542,7 +543,6 @@ const APP = () => {
if (nearestDist < 300 && nearestIdx !== currentCityIndexRef.current) {
currentCityIndexRef.current = nearestIdx;
setCurrentCityIndex(nearestIdx);
showCityPopup(cities[nearestIdx]);
}
if (currentProgress - lastFetchedDist > 2000) {