mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-13 15:46:22 +08:00
[offers][fix] fix numOfOtherOffers calibration (#538)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user