fix: prevent browser caching of booked dates and ensure booked dates are immediately disabled

This commit is contained in:
2026-08-12 18:16:47 +02:00
parent 23baff9ef0
commit 020f3ef746
3 changed files with 39 additions and 18 deletions
+8
View File
@@ -79,6 +79,14 @@
})
.then((data) => {
if (data.success) {
try {
const localBooked = JSON.parse(localStorage.getItem("bookedDates") || "[]");
if (!localBooked.includes(selectedDate)) {
localBooked.push(selectedDate);
localStorage.setItem("bookedDates", JSON.stringify(localBooked));
}
} catch (e) {}
summarySection.classList.add("hidden");
if (backLink) {
backLink.classList.add("hidden");