Skip to content

Commit

Permalink
fix: added force rounding user input in case when test input marked a…
Browse files Browse the repository at this point in the history
…s integer
  • Loading branch information
Kirill-Hatalski committed Dec 12, 2023
1 parent 59f8ac0 commit ef999d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ function getResponse(interaction) {
const convertedValue = converter.convert(inputValue.trim());
if (baseType === 'integer') {
value = locale.parseInt(convertedValue, numericBase);
$input.val(value);
} else if (baseType === 'float') {
value = locale.parseFloat(convertedValue);
} else if (baseType === 'string') {
Expand Down

0 comments on commit ef999d8

Please sign in to comment.