[offers][fix] Fix bug where full timers when getting sorted by monthly salary instead of TC

pull/454/head
Bryann Yeap Kok Keong 2 years ago
parent 22f2f15aa4
commit 10a049f627

@ -213,7 +213,6 @@ export const offersAnalysisRouter = createRouter()
const overallHighestOffer = offers[0];
// TODO: Shift yoe out of background to make it mandatory
if (
!overallHighestOffer.profile.background ||
overallHighestOffer.profile.background.totalYoe == null

@ -219,8 +219,8 @@ export const offersRouter = createRouter().query('list', {
: sortingKey === sortingKeysMap.totalCompensation
? [
{
offersIntern: {
monthlySalary: {
offersFullTime: {
totalCompensation: {
baseValue: order,
},
},

Loading…
Cancel
Save