@dgpholdings/greatoak-shared 1.1.52 → 1.1.53
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.
|
@@ -24,8 +24,8 @@ const refineRecordEntry = (entry) => {
|
|
|
24
24
|
: undefined });
|
|
25
25
|
}
|
|
26
26
|
if (entry.type === "cardio-machine") {
|
|
27
|
-
const speed = (_g = (0, number_util_1.toNumber)(entry.
|
|
28
|
-
const resistance = (_h = (0, number_util_1.toNumber)(entry.
|
|
27
|
+
const speed = (_g = (0, number_util_1.toNumber)(entry.speedMin)) !== null && _g !== void 0 ? _g : 1;
|
|
28
|
+
const resistance = (_h = (0, number_util_1.toNumber)(entry.rpe)) !== null && _h !== void 0 ? _h : 1;
|
|
29
29
|
const durationSecs = (_j = (0, number_util_1.toNumber)(entry.durationSecs)) !== null && _j !== void 0 ? _j : 0;
|
|
30
30
|
// Calculate intensity score for progress tracking
|
|
31
31
|
const intensityScore = speed > 0 && resistance > 0 ? speed * resistance : undefined;
|