[offers][fix] remove display of offers for 0 offers (#536)

This commit is contained in:
Zhang Ziqing
2022-11-08 15:58:18 +08:00
committed by GitHub
parent d284b2b609
commit 5acda1cde9

View File

@@ -62,9 +62,11 @@ export default function OfferTableRow({
href={`/offers/profile/${profileId}`}>
View Profile
</Link>
<div className="text-xs text-slate-500">
This person also received {numberOfOtherOffers} other offer(s).
</div>
{numberOfOtherOffers > 0 && (
<div className="text-xs text-slate-500">
This person also received {numberOfOtherOffers} other offer(s).
</div>
)}
</td>
</tr>
);