diff --git a/src/features/App/index.tsx b/src/features/App/index.tsx index 71bbf677..093c073e 100644 --- a/src/features/App/index.tsx +++ b/src/features/App/index.tsx @@ -35,7 +35,7 @@ const Main = () => { const queryClient = new QueryClient() useEffect(() => { - readToken() && setIsToken(true) + if (userInfo) readToken() && setIsToken(true) }, [userInfo]) // имеется действующий токен diff --git a/src/features/Search/styled.tsx b/src/features/Search/styled.tsx index c75e2aa3..e8de8d57 100644 --- a/src/features/Search/styled.tsx +++ b/src/features/Search/styled.tsx @@ -180,7 +180,7 @@ export const Results = styled.div` background-color: ${({ theme }) => theme.colors.modalBackground}; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3); border-radius: 2px; - z-index: 3; + z-index: 5; ${isMobileDevice ? css` top: 33px;