Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
fix: баг с перезагрузкой страницы для неавторизованных пользователей
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriaBorovskaya committed Mar 20, 2024
1 parent f95cd9b commit 88b9eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widgets/menu/base/MenuBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export const MenuBase = () => {
const location = useLocation();

useEffect(() => {
refetch();
if (isAuth) {
refetch();
}
}, [location, isAuth]);

return (
Expand Down

0 comments on commit 88b9eaf

Please sign in to comment.