@rasifix/orienteering-utils 2.0.8 → 2.0.10
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/lib/index.js +3 -0
- package/lib/utils/ranking.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/utils/ranking.js
CHANGED
|
@@ -348,7 +348,8 @@ function defineLegProperties(legs) {
|
|
|
348
348
|
if (selected.length > 0) {
|
|
349
349
|
leg.idealSplit = Math.round(selected.reduce(sum) / selected.length);
|
|
350
350
|
if (leg.idealSplit < 0) {
|
|
351
|
-
|
|
351
|
+
console.log("invalid ideal split calculated for leg " + code, leg.idealSplit);
|
|
352
|
+
leg.idealSplit = 30;
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
// only if there are valid splits for this leg
|