diff --git a/lib/scoring.js b/lib/scoring.js index cb65215..87fc715 100644 --- a/lib/scoring.js +++ b/lib/scoring.js @@ -32,7 +32,7 @@ function computeScore(dev, maxValues) { }; // If developer has no SO data, redistribute SO weight to GitHub dimensions - const hasSO = (dev.soReputation || 0) > 0 || (dev.soAnswers || 0) > 0; + const hasSO = Boolean(dev.soUserId) || (dev.soReputation || 0) > 0 || (dev.soAnswers || 0) > 0; let weights = WEIGHTS; if (!hasSO) { const soWeight = WEIGHTS.soReputation + WEIGHTS.soEngagement;