diff --git a/src/components/Home/FamilyDash.jsx b/src/components/Home/FamilyDash.jsx index 2eee32d..e8e460a 100644 --- a/src/components/Home/FamilyDash.jsx +++ b/src/components/Home/FamilyDash.jsx @@ -6,7 +6,7 @@ import FamilyActiveLSlde from "./FamilyActiveLSlde"; import { useDispatch, useSelector } from "react-redux"; import { tableReload } from "../../store/TableReloads"; -export default function FamilyDash({ familyOffers, MyActiveJobList }) { +export default function FamilyDash({ MyActiveJobList, serverImg }) { // console.log("PROPS IN FAMILY DASH->", familyOffers?.result_list); const dispatch = useDispatch(); @@ -131,18 +131,19 @@ export default function FamilyDash({ familyOffers, MyActiveJobList }) { } - {familyOffers?.result_list && familyOffers?.result_list.length > 0 && ( + {/* {familyOffers?.result_list && familyOffers?.result_list.length > 0 && ( - )} + )} */} + {trending && trending.length > 0 && ( )} diff --git a/src/components/Home/index.jsx b/src/components/Home/index.jsx index a8515ec..c0d4a2a 100644 --- a/src/components/Home/index.jsx +++ b/src/components/Home/index.jsx @@ -60,8 +60,9 @@ export default function Home(props) { const fetchData = async () => { await Promise.all([getHomeDate(), getMyOffersList()]); }; - - fetchData(); + if(userDetails?.account_type == 'FULL'){ + fetchData(); + } }, []); useEffect(() => { @@ -75,7 +76,8 @@ export default function Home(props) { ) : userDetails && userDetails?.account_type == "FULL" ? (