@rasifix/orienteering-utils 2.0.54 → 2.0.55
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/utils/ranking.js +4 -0
- package/package.json +1 -1
package/lib/utils/ranking.js
CHANGED
|
@@ -379,6 +379,10 @@ function defineLegProperties(legs) {
|
|
|
379
379
|
leg.idealSplit = 30;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
+
else {
|
|
383
|
+
console.log("no valid splits for leg " + code + " found, setting ideal split to 30s");
|
|
384
|
+
leg.idealSplit = 30;
|
|
385
|
+
}
|
|
382
386
|
// only if there are valid splits for this leg
|
|
383
387
|
if (leg.runners.length > 0) {
|
|
384
388
|
var fastestSplit_1 = leg.runners[0].split;
|