diff --git a/lib/iob/calculate.js b/lib/iob/calculate.js index 2686cf135..ba808692f 100644 --- a/lib/iob/calculate.js +++ b/lib/iob/calculate.js @@ -110,7 +110,7 @@ function iobCalcExponential(treatment, minsAgo, dia, peak, profile) { peak = 55; } } else { - console.error('Curve of',curve,'is not supported.'); + console.error('Curve of',profile.curve,'is not supported.'); } var end = dia * 60; // end of insulin activity, in minutes