From 9ee151342ea2aa3446ce8775a2a8da5c51261e27 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing <69516975+ziqing26@users.noreply.github.com> Date: Tue, 8 Nov 2022 16:16:37 +0800 Subject: [PATCH] [offers][fix] fix numOfOtherOffers calibration (#538) --- apps/portal/src/mappers/offers-mappers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/mappers/offers-mappers.ts b/apps/portal/src/mappers/offers-mappers.ts index 3b3542a7..f137f2a1 100644 --- a/apps/portal/src/mappers/offers-mappers.ts +++ b/apps/portal/src/mappers/offers-mappers.ts @@ -792,7 +792,7 @@ export const dashboardOfferDtoMapper = ( location: locationDtoMapper(offer.location), monthYearReceived: offer.monthYearReceived, numberOfOtherOffers: - offer.profile.offers.length < 2 ? 0 : offer.profile.offers.length, + offer.profile.offers.length < 2 ? 0 : offer.profile.offers.length - 1, profileId: offer.profileId, title: offer.offersFullTime?.title || offer.offersIntern?.title || '', totalYoe: offer.profile.background?.totalYoe ?? -1,