Skip to content

Commit e2fdf5f

Browse files
committed
Fix map visibility toggle logic
1 parent 2375065 commit e2fdf5f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

donations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h1>Unterstütze bitcircus101</h1>
250250
}
251251

252252
// Show/hide map
253-
var isVisible = mapContainer.style.display !== "none";
253+
var isVisible = mapContainer.style.display === "block";
254254
mapContainer.style.display = isVisible
255255
? "none"
256256
: "block";

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ <h2>Kontakt</h2>
433433
}
434434

435435
// Show/hide map
436-
const isVisible = mapContainer.style.display !== "none";
436+
const isVisible = mapContainer.style.display === "block";
437437
mapContainer.style.display = isVisible ? "none" : "block";
438438
showMapBtn.textContent = isVisible
439439
? "Auf Karte anzeigen"

0 commit comments

Comments
 (0)