From 74f6e1ab69483d709aca781cb95e858c78a0d57f Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Wed, 3 Jan 2024 14:03:38 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20parsov=C3=A1n=C3=AD=20Sladovnick=C3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Opravena chyba, kdy docházelo k posunu nabídky o den, pokud nabídka nezačínala pondělím. --- client/src/App.tsx | 1 + server/src/restaurants.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index e5224c2..88e4c9c 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -361,6 +361,7 @@ function App() { Poslední změny: {dayIndex != null && diff --git a/server/src/restaurants.ts b/server/src/restaurants.ts index d1700c2..2217c00 100644 --- a/server/src/restaurants.ts +++ b/server/src/restaurants.ts @@ -137,7 +137,7 @@ export const getMenuSladovnicka = async (firstDayOfWeek: Date, mock: boolean = f isSoup: false, }); }) - result[index] = currentDayFood; + result[dayIndex] = currentDayFood; } return result; }