fix: oprava přeskoku týdne rychlým klikáním na šipky
CI / Generate TypeScript types (push) Successful in 18s
CI / Server unit tests (push) Successful in 20s
CI / Build server (push) Successful in 24s
CI / Build client (push) Successful in 36s
CI / Playwright E2E tests (push) Successful in 1m18s
CI / Build and push Docker image (push) Successful in 53s
CI / Notify (push) Successful in 1s

This commit is contained in:
2026-07-07 10:51:53 +02:00
parent 9a03dd1e5e
commit 464b14d63a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -528,7 +528,8 @@ function App() {
} }
} }
const handleDayChange = async (dayIndex: number) => { const handleDayChange = async (requestedIndex: number) => {
const dayIndex = Math.max(0, Math.min(4, requestedIndex));
setDayIndex(dayIndex); setDayIndex(dayIndex);
dayIndexRef.current = dayIndex; dayIndexRef.current = dayIndex;
if (choiceRef?.current?.value) { if (choiceRef?.current?.value) {
+2 -1
View File
@@ -1,4 +1,5 @@
[ [
"Oprava: uložení preferovaného času odchodu i u podniku bez načteného menu", "Oprava: uložení preferovaného času odchodu i u podniku bez načteného menu",
"Oprava: načítání denního menu podniku TechTower po změně jejich webu" "Oprava: načítání denního menu podniku TechTower po změně jejich webu",
"Oprava: rychlé klikání na šipky přepínání dní už nepřeskočí mimo pracovní týden"
] ]