@sports-alliance/sports-lib
Advanced tools
Comparing version 5.2.11 to 5.2.12
@@ -297,3 +297,3 @@ "use strict"; | ||
else if (endDate < startDate) { // If for some reason this happens | ||
if (!fitDataObject.records || fitDataObject.records[0]) { | ||
if (!fitDataObject.records || !fitDataObject.records[0]) { | ||
throw new Error('Cannot parse dates. Start date is greater than the end date'); | ||
@@ -300,0 +300,0 @@ } |
{ | ||
"name": "@sports-alliance/sports-lib", | ||
"version": "5.2.11", | ||
"version": "5.2.12", | ||
"description": "A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
35189486