diff --git a/client/src/components/TopBar/index.tsx b/client/src/components/TopBar/index.tsx index 1b050d10..1600023a 100644 --- a/client/src/components/TopBar/index.tsx +++ b/client/src/components/TopBar/index.tsx @@ -1,7 +1,6 @@ -import { FC, useEffect, useRef } from 'react'; +import { FC, useEffect} from 'react'; import { Grid, Toolbar, Typography, useTheme } from '@mui/material'; import { MenuOutlined } from '@mui/icons-material'; - import { AppBarStyled } from './styles'; import { ITopBarProps } from '../../common/types/topBar'; import { FlexBetween } from '../GeneralComponentsStyles'; @@ -22,14 +21,14 @@ const TopBarComponent: FC = ( const userVerify: string = useAppSelector( state => state.auth.user.verifyLink, ); - const effectRan = useRef(false); + // const effectRan = useRef(false); useEffect(() => { - if (effectRan.current) { + // if (effectRan.current) { if (userVerify==='') { dispatch(refreshUsers()); } - } - effectRan.current = true; + // } + // effectRan.current = true; }, [firstNameUserAuth,dispatch]); return ( diff --git a/client/vite.config.ts b/client/vite.config.ts index c5263cf9..8583f209 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -1,6 +1,5 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; -import { resolve } from 'path'; // https://vitejs.dev/config/ export default defineConfig({