Skip to content

Commit c3a1415

Browse files
likemusicihor-sviziev
authored andcommitted
Update validation.js
Fix to allow use decimals less then 1 in subproducts qty.
1 parent 58dd8e2 commit c3a1415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
if (val && val.length > 0) {
3232
result = true;
33-
valInt = parseInt(val, 10) || 0;
33+
valInt = parseFloat(val) || 0;
3434

3535
if (valInt >= 0) {
3636
total += valInt;

0 commit comments

Comments
 (0)