@dra2020/district-analytics 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -90621,8 +90621,8 @@ function scorePlan(p, overridesJSON) {
90621
90621
  let score = weightOverall(pS.score2, tpS.score, 1 /* WithinAState */);
90622
90622
  const mS = minority_1.evalMinorityOpportunity(p);
90623
90623
  // Add minority bonus, keeping score to the range [0–100]
90624
- const bonus = mS.score * (C.minorityBonus() / 100);
90625
- score = mixinMinorityBonus(score, mS.score);
90624
+ const bonus = C.minorityBonus() * (mS.score / 100);
90625
+ score = mixinMinorityBonus(score, bonus);
90626
90626
  // Roll up an overall scorecard
90627
90627
  const scorecard = {
90628
90628
  partisan: pS,