interest count bug fixed
This commit was merged in pull request #778.
This commit is contained in:
@@ -11,7 +11,7 @@ import LockJob from "./LockJob";
|
|||||||
const MarketPopUp = ({ details, onClose, situation, marketInt, marketPlaceProduct }) => {
|
const MarketPopUp = ({ details, onClose, situation, marketInt, marketPlaceProduct }) => {
|
||||||
|
|
||||||
let { jobLists } = useSelector((state) => state.jobLists);
|
let { jobLists } = useSelector((state) => state.jobLists);
|
||||||
const [{interest_count}] = jobLists?.interest_list?.filter(item => item.job_uid == details.job_uid);
|
const interestCount = jobLists?.interest_list?.filter(item => item.job_uid == details.job_uid);
|
||||||
// console.log('interestList', interest_count)
|
// console.log('interestList', interest_count)
|
||||||
// console.log('MEMO', jobLists?.interest_list, datas.job_uid)
|
// console.log('MEMO', jobLists?.interest_list, datas.job_uid)
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ const MarketPopUp = ({ details, onClose, situation, marketInt, marketPlaceProduc
|
|||||||
|
|
||||||
<div className="text-slate-900">
|
<div className="text-slate-900">
|
||||||
<p className="flex items-center tracking-wide">
|
<p className="flex items-center tracking-wide">
|
||||||
<span className="job-label">Interest: </span> <b className="ml-1">{interest_count || details.interest_count}</b>
|
<span className="job-label">Interest: </span> <b className="ml-1">{interestCount.length > 0 ? interestCount[0].interest_count : '0'}</b>
|
||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<p className="my-1 flex flex-col">
|
<p className="my-1 flex flex-col">
|
||||||
|
|||||||
Reference in New Issue
Block a user