Oprava zbytečného posílání loginu na server

This commit is contained in:
2023-09-27 18:34:14 +02:00
parent bef6178a6f
commit 401833f763
2 changed files with 3 additions and 5 deletions

View File

@@ -268,9 +268,7 @@ function App() {
const handleChangeDepartureTime = async (event: React.ChangeEvent<HTMLSelectElement>) => {
if (foodChoiceList?.length && choiceRef.current?.value) {
if (auth?.login) {
await changeDepartureTime(auth.login, event.target.value, dayIndex);
}
await changeDepartureTime(event.target.value, dayIndex);
}
}