diff --git a/src/components/OffersInterest/OthersInterestedTable.jsx b/src/components/OffersInterest/OthersInterestedTable.jsx index dd9933f..aa2ced7 100644 --- a/src/components/OffersInterest/OthersInterestedTable.jsx +++ b/src/components/OffersInterest/OthersInterestedTable.jsx @@ -56,13 +56,18 @@ export default function OthersInterestTable({othersInterestedList, className}) { {currentOthersInterestedList?.map((item, index) => { + const image = localStorage.getItem("session_token") + ? `${othersInterestedList.imageServer}${localStorage.getItem("session_token")}/job/${ + item.job_uid + }` + : ""; return (
data diff --git a/src/views/ManageInterestOfferPage.jsx b/src/views/ManageInterestOfferPage.jsx index 4cd986c..9c39689 100644 --- a/src/views/ManageInterestOfferPage.jsx +++ b/src/views/ManageInterestOfferPage.jsx @@ -12,7 +12,7 @@ export default function MyReviewDueJobsPage() { let { othersInterestedTable } = useSelector((state) => state.tableReload); // FOR OTHERS INTERESTED TABLE RELOAD const apiCall = new usersService(); - const [othersInterestedList, setOthersInterestedList] = useState({loading: true, data: []}) + const [othersInterestedList, setOthersInterestedList] = useState({loading: true, data: [], imageServer:''}) useEffect(() => { if(!state){ @@ -26,9 +26,9 @@ export default function MyReviewDueJobsPage() { }else{ newData = [] } - setOthersInterestedList({loading: false, data: newData}) + setOthersInterestedList({loading: false, data: newData, imageServer:res.data.session_image_server}) }).catch(err => { - setOthersInterestedList({loading: false, data: []}) + setOthersInterestedList({loading: false, data: [], imageServer:''}) console.log('Error: ', err) }) }, [othersInterestedTable]);