[offers][fix] fix numOfOtherOffers calibration (#538)

pull/539/head
Zhang Ziqing 2 years ago committed by GitHub
parent fd2bd5862c
commit 9ee151342e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -792,7 +792,7 @@ export const dashboardOfferDtoMapper = (
location: locationDtoMapper(offer.location), location: locationDtoMapper(offer.location),
monthYearReceived: offer.monthYearReceived, monthYearReceived: offer.monthYearReceived,
numberOfOtherOffers: 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, profileId: offer.profileId,
title: offer.offersFullTime?.title || offer.offersIntern?.title || '', title: offer.offersFullTime?.title || offer.offersIntern?.title || '',
totalYoe: offer.profile.background?.totalYoe ?? -1, totalYoe: offer.profile.background?.totalYoe ?? -1,

Loading…
Cancel
Save