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

pull/538/head
Zhang Ziqing 2 years ago committed by GitHub
parent d284b2b609
commit 5acda1cde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>
);

Loading…
Cancel
Save