Skip to content

Commit

Permalink
Cyberleague: [premieroctet#116] Fix one length test in related_users …
Browse files Browse the repository at this point in the history
…computing
  • Loading branch information
Bastien-Wappizy committed Sep 13, 2024
1 parent 16a4e0e commit 281ab50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/web/server/plugins/cyberleague/related.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const getRelated = (model) => {
} else {
if (sameFunSizeLength > 10) {
const sameUserAll = lodash.groupBy(sameUserFunSize, (u) => u.company?.sector)[data.company?.sector]
const sameAllLength = sameUserAll.length || 0
const sameAllLength = sameUserAll?.length || 0

//not enough users with same function, company size and company sector
if (sameAllLength < 10) {
Expand Down

0 comments on commit 281ab50

Please sign in to comment.