From 5acda1cde91e588057d0bf574ad0953be37cc277 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing <69516975+ziqing26@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:58:18 +0800 Subject: [PATCH] [offers][fix] remove display of offers for 0 offers (#536) --- apps/portal/src/components/offers/table/OffersRow.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/portal/src/components/offers/table/OffersRow.tsx b/apps/portal/src/components/offers/table/OffersRow.tsx index 64865087..374be469 100644 --- a/apps/portal/src/components/offers/table/OffersRow.tsx +++ b/apps/portal/src/components/offers/table/OffersRow.tsx @@ -62,9 +62,11 @@ export default function OfferTableRow({ href={`/offers/profile/${profileId}`}> View Profile -
- This person also received {numberOfOtherOffers} other offer(s). -
+ {numberOfOtherOffers > 0 && ( +
+ This person also received {numberOfOtherOffers} other offer(s). +
+ )} );