|
|
|
@ -700,6 +700,25 @@ export const dashboardOfferDtoMapper = (
|
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
|
offer.offersFullTime.totalCompensation,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.baseSalary) {
|
|
|
|
|
dashboardOfferDto.baseSalary = valuationDtoMapper(
|
|
|
|
|
offer.offersFullTime.baseSalary
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.bonus) {
|
|
|
|
|
dashboardOfferDto.bonus = valuationDtoMapper(
|
|
|
|
|
offer.offersFullTime.bonus
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (offer.offersFullTime.stocks) {
|
|
|
|
|
dashboardOfferDto.stocks = valuationDtoMapper(
|
|
|
|
|
offer.offersFullTime.stocks
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
} else if (offer.offersIntern) {
|
|
|
|
|
dashboardOfferDto.income = valuationDtoMapper(
|
|
|
|
|
offer.offersIntern.monthlySalary,
|
|
|
|
|