diff --git a/client/src/App.tsx b/client/src/App.tsx index 1bb8b7f..8bbafa4 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -68,11 +68,11 @@ function App() { if (!auth?.login) { return } - getData().then(({ data }) => { + getData().then(data => { if (data) { setData(data); - setDayIndex(data.weekIndex); - dayIndexRef.current = data.weekIndex; + setDayIndex(data.dayIndex); + dayIndexRef.current = data.dayIndex; setFood(data.menus); } }).catch(e => { @@ -363,7 +363,7 @@ function App() { content =

Chyba načtení dat

} return -

doAddClickFoodChoice(location)}>{location}

+

doAddClickFoodChoice(location)}>{LunchChoice[location]}

{menu?.lastUpdate && Poslední aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}} {content} @@ -651,7 +651,7 @@ function App() { } - } + || "Jejda, něco se nám nepovedlo :("}