diff --git a/apps/portal/src/server/router/offers/offers-analysis-router.ts b/apps/portal/src/server/router/offers/offers-analysis-router.ts index 3009c1f3..b79432e9 100644 --- a/apps/portal/src/server/router/offers/offers-analysis-router.ts +++ b/apps/portal/src/server/router/offers/offers-analysis-router.ts @@ -339,7 +339,7 @@ export const offersAnalysisRouter = createRouter() (companyOffer) => { // TODO: Refactor calculating analysis into a function let similarCompanyOffers = similarOffers.filter( - (offer) => offer.companyId === overallHighestOffer.companyId, + (offer) => offer.companyId === companyOffer.companyId, ); const companyIndex = searchOfferPercentile(