diff --git a/lib/client/careportal.js b/lib/client/careportal.js index 4a89ffcebc8..023c400b41f 100644 --- a/lib/client/careportal.js +++ b/lib/client/careportal.js @@ -272,8 +272,8 @@ function init (client, $) { messages.push("Please enter a valid value for both top and bottom target to save a Temporary Target"); } else { - let targetTop = data.targetTop; - let targetBottom = data.targetBottom; + let targetTop = parseInt(data.targetTop); + let targetBottom = parseInt(data.targetBottom); let minTarget = 4 * 18; let maxTarget = 18 * 18;