Browse Source

Fix differ.

master
Stian Aune 5 years ago
parent
commit
d56aa0d147
  1. 4
      my-bois/src/helpers/diff.js

4
my-bois/src/helpers/diff.js

@ -3,6 +3,10 @@ export function diffString(diff) {
}
export default function calculateDiff({program, cooldownMin = null, minutes, seconds, calories}) {
if (cooldownMin < 0) {
cooldownMin = null
}
const {warmupMin, warmupCpm, cpm, cooldownCpm} = program;
const actualWarmup = cooldownMin !== null && cooldownMin > 0
? Math.min(warmupMin, cooldownMin)

Loading…
Cancel
Save