diff --git a/src/components/Home/index.jsx b/src/components/Home/index.jsx
index 9d38a75..ed2d562 100644
--- a/src/components/Home/index.jsx
+++ b/src/components/Home/index.jsx
@@ -10,7 +10,7 @@ import LoadingSpinner from '../../components/Spinners/LoadingSpinner'
export default function Home(props) {
// console.log("PROPS IN HOME->", props);
// const userApi = new usersService();
- const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
+ // const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
const { userDetails } = useSelector((state) => state?.userDetails);
return (
@@ -26,7 +26,7 @@ export default function Home(props) {
/>
) : userDetails && userDetails?.account_type == "FULL" ? (
<>
- {Object.keys(commonHeadBanner).length < 1 ?
+ {props?.bannerList?.length < 1 ?
:
{
}, [isLogin.status]);
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update when jobs enters the market
+ if(loggedIn || isLogin.status){
joinRoom('full-markets-jobs')
+ }
},[isLogin.status])
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update for parent child job assign