diff --git a/src/App.tsx b/src/App.tsx index 04eae88..936598b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,7 +9,7 @@ export function App() { const handleLogout = () => { localStorage.clear(); sessionStorage.clear(); - window.location.reload(); // Перезагрузка вернет пользователя на экран входа + window.location.href = '/'; }; useEffect(() => { @@ -48,9 +48,35 @@ export function App() { } return ( -
+ {authError} +
+ +