Skip to content

Commit

Permalink
Parse target top and bottom as integers (#5019)
Browse files Browse the repository at this point in the history
  • Loading branch information
p5nbTgip0r authored and sulkaharo committed Oct 9, 2019
1 parent 5663dc5 commit 7e36580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/careportal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e36580

Please sign in to comment.