From 4f7c4d75423fb0452948f97668e4bb2070f995f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Mon, 22 Jan 2024 13:46:47 +0300 Subject: [PATCH] fix: fix auth on initial load --- src/components/App/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 44c4a4b17..186f65c39 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -5,10 +5,10 @@ import 'react-toastify/dist/ReactToastify.css' import { Socket } from 'socket.io-client' import * as sphinx from 'sphinx-bridge' import styled from 'styled-components' -import { Flex } from '~/components/common/Flex' import { DataRetriever } from '~/components/DataRetriever' import { GlobalStyle } from '~/components/GlobalStyle' import { Universe } from '~/components/Universe' +import { Flex } from '~/components/common/Flex' import { isDevelopment, isE2E } from '~/constants' import useSocket from '~/hooks/useSockets' import { getIsAdmin } from '~/network/auth' @@ -191,8 +191,7 @@ export const App = () => { return () => { clearTimeout(timer) } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []) + }, [handleAuth]) return (