Skip to content

Commit

Permalink
Update product.js
Browse files Browse the repository at this point in the history
Added missing radix to parseint function
  • Loading branch information
ComonSoft authored Jun 11, 2024
1 parent 740048f commit 00f84c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _dev/js/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $(document).ready(() => {
$(prestashop.themeSelectors.touchspin).off('touchstart.touchspin');

$quantityInput.on('focusout', () => {
if ($quantityInput.val() === '' || parseInt($quantityInput.val()) < parseInt($quantityInput.attr('min'))) {
if ($quantityInput.val() === '' || parseInt($quantityInput.val(), 10) < parseInt($quantityInput.attr('min'), 10)) {

Check failure on line 134 in _dev/js/product.js

View workflow job for this annotation

GitHub Actions / ESLint

This line has a length of 121. Maximum allowed is 120
$quantityInput.val($quantityInput.attr('min'));
$quantityInput.trigger('change');
}
Expand Down

0 comments on commit 00f84c2

Please sign in to comment.