mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-08-01 09:13:27 +08:00
[offers][fix] Fix bug where full timers when getting sorted by monthly salary instead of TC
This commit is contained in:
@ -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,
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user