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

This commit is contained in:
Bryann Yeap Kok Keong
2022-10-29 12:18:10 +08:00
parent 22f2f15aa4
commit 10a049f627
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

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