[offers][fix] Fix bug where company analysis shows wrong company

pull/501/head^2
Bryann Yeap Kok Keong 3 years ago
parent 21efdd7754
commit fe432e835b

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

Loading…
Cancel
Save