quantified-self-lib
Advanced tools
Comparing version 3.5.5 to 3.5.6
@@ -65,3 +65,3 @@ "use strict"; | ||
// If the distance from laps is 0 and there is a last trackpoint with distance use that | ||
if (activity.getDistance().getValue() === 0) { | ||
if (activity.getDistance().getValue() === 0 && trackPointElements[trackPointElements.length - 1].getElementsByTagName('DistanceMeters')[0]) { | ||
activity.setDistance(new data_distance_1.DataDistance(Number(trackPointElements[trackPointElements.length - 1].getElementsByTagName('DistanceMeters')[0].textContent))); | ||
@@ -68,0 +68,0 @@ } |
{ | ||
"name": "quantified-self-lib", | ||
"version": "3.5.5", | ||
"version": "3.5.6", | ||
"description": "A Library to for processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
6827237