@rasifix/orienteering-utils 2.0.20 → 2.0.21

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.
@@ -348,7 +348,7 @@ function defineLegProperties(legs) {
348
348
  return r1.split - r2.split;
349
349
  });
350
350
  // calculate the ideal time: take up to 5 fastest on that leg
351
- var selected = leg.runners
351
+ var selected = leg.runners.filter((runner) => !isNaN(runner.split) && runner.split !== undefined)
352
352
  .slice(0, Math.min(leg.runners.length, 5))
353
353
  .map(function (runner) { return runner.split; });
354
354
  // only if there are valid splits for this leg
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasifix/orienteering-utils",
3
- "version": "2.0.20",
3
+ "version": "2.0.21",
4
4
  "description": "utility functions for orienteering result analyzis",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",