From 0eaa72a5ec13940535a3e64c9b5c9f2b19aa3b9f Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 28 Jun 2023 16:42:16 +0100 Subject: [PATCH] made others interest table hidden if its empty --- .../OffersInterest/ManageInterestOffer.jsx | 8 ++++++-- .../OffersInterest/OffersInterestTable.jsx | 14 +------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/components/OffersInterest/ManageInterestOffer.jsx b/src/components/OffersInterest/ManageInterestOffer.jsx index ebfd07e..536fa00 100644 --- a/src/components/OffersInterest/ManageInterestOffer.jsx +++ b/src/components/OffersInterest/ManageInterestOffer.jsx @@ -105,8 +105,8 @@ export default function ManageInterestOffer(props) { useEffect(()=>{ //API to get Offer Interest message list let reqData = { // API PAYLOADS msg_type: 'MRKTINT', - offer_uid: props.offerDetails.offer_uid, - interest_uid: props.offerDetails.interest_uid + offer_uid: props.offerDetails?.offer_uid, + interest_uid: props.offerDetails?.interest_uid } setMessageList(prev => ({...prev, loading: true})) apiCall.offerInterestListMsg(reqData).then(res=>{ @@ -359,6 +359,7 @@ export default function ManageInterestOffer(props) { {/* END OF manage offer section */} + {props.othersInterestedList?.data?.length ?
{/* heading */}
@@ -370,6 +371,9 @@ export default function ManageInterestOffer(props) {
+ : + null + } ); diff --git a/src/components/OffersInterest/OffersInterestTable.jsx b/src/components/OffersInterest/OffersInterestTable.jsx index 542ea3d..b834701 100644 --- a/src/components/OffersInterest/OffersInterestTable.jsx +++ b/src/components/OffersInterest/OffersInterestTable.jsx @@ -107,19 +107,7 @@ export default function OffersInterestTable({offerInterestList, className}) { : (
-
-

No Offer list avaliable.

- -
-
- Add Family -
+

No list avaliable.

) }