diff --git a/rair-front/src/components/Header/MainHeader.tsx b/rair-front/src/components/Header/MainHeader.tsx index 36bf1010f..c3f3714a6 100644 --- a/rair-front/src/components/Header/MainHeader.tsx +++ b/rair-front/src/components/Header/MainHeader.tsx @@ -15,8 +15,8 @@ import useComponentVisible from '../../hooks/useComponentVisible'; import useConnectUser from '../../hooks/useConnectUser'; import { useAppDispatch, useAppSelector } from '../../hooks/useReduxHooks'; import { dataStatuses } from '../../redux/commonTypes'; -import { clearResults, startSearch } from '../../redux/searchbarSlice'; import { fetchNotifications } from '../../redux/notificationsSlice'; +import { clearResults, startSearch } from '../../redux/searchbarSlice'; import InputField from '../common/InputField'; import { TooltipBox } from '../common/Tooltip/TooltipBox'; import MainLogo from '../GroupLogos/MainLogo'; @@ -63,7 +63,9 @@ const MainHeader: FC = ({ (store) => store.user ); - const { totalCount: notificationCount, notifications } = useAppSelector(store => store.notifications); + const { totalCount: notificationCount, notifications } = useAppSelector( + (store) => store.notifications + ); const { currentUserAddress } = useAppSelector((store) => store.web3); @@ -121,7 +123,7 @@ const MainHeader: FC = ({ }; useEffect(() => { - if(currentUserAddress && isLoggedIn) { + if (currentUserAddress && isLoggedIn) { dispatch(fetchNotifications(0)); } }, [currentUserAddress, isLoggedIn]); @@ -166,7 +168,7 @@ const MainHeader: FC = ({ useEffect(() => { dispatch(fetchNotifications()); - }, []) + }, []); return (