Srovnání stížností linteru

This commit is contained in:
Martin Berka 2023-06-07 21:08:01 +02:00
parent 5e94009898
commit 8525bc5c12
2 changed files with 1 additions and 2 deletions

View File

@ -115,7 +115,6 @@ function App() {
const s = value.split('|');
const pizzaIndex = Number.parseInt(s[0]);
const pizzaSizeIndex = Number.parseInt(s[1]);
const pizza = pizzy[pizzaIndex];
await addPizza(auth.login, pizzaIndex, pizzaSizeIndex);
}
}

View File

@ -15,7 +15,7 @@ export default function Login() {
if (length) {
auth?.setLogin(loginRef.current.value);
}
}, []);
}, [auth]);
if (!auth || !auth.login) {
return <div className='login'>