Úpravy pro linter

This commit is contained in:
Martin Berka 2023-06-12 21:52:30 +02:00
parent 07550e7f83
commit 179e27f8af

View File

@ -125,7 +125,7 @@ function App() {
} }
} }
const addToCart = async () => { // const addToCart = async () => {
// TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie // TODO aktuálně nefunkční - nedokážeme poslat PHPSESSIONID cookie
// if (data?.pizzaDay?.orders) { // if (data?.pizzaDay?.orders) {
// for (const order of data?.pizzaDay?.orders) { // for (const order of data?.pizzaDay?.orders) {
@ -147,7 +147,7 @@ function App() {
// } // }
// // TODO otevřít košík v nové záložce // // TODO otevřít košík v nové záložce
// } // }
} // }
const renderFoodTable = (name, food) => { const renderFoodTable = (name, food) => {
return <Col md={12} lg={4}> return <Col md={12} lg={4}>
@ -174,7 +174,7 @@ function App() {
return <div>Načítám data...</div> return <div>Načítám data...</div>
} }
const noOrders = data?.pizzaDay?.orders?.length == 0; const noOrders = data?.pizzaDay?.orders?.length === 0;
return ( return (
<> <>