@dra2020/district-analytics 2.0.7 → 2.0.8

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.
@@ -448,7 +448,7 @@ class Districts {
448
448
  if (i > 0) {
449
449
  if (totalPop > 0) {
450
450
  popDevPct = (totalPop - targetSize) / targetSize;
451
- bEqualPop = (popDevPct <= deviationThreshold);
451
+ bEqualPop = (Math.abs(popDevPct) <= deviationThreshold);
452
452
  }
453
453
  }
454
454
  // Total two-party (not total total!) votes, Democratic and Republican vote