Skip to content

Commit

Permalink
Treat zero quntity as empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed Dec 7, 2023
1 parent fd7b5b9 commit e5c9c30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ angular.module('virtoCommerce.catalogModule')
}

function isEmpty(value) {
return value == null || value === '';
return value == null || value === '' || value === '0' || value === 0;
}

function saveChanges() {
Expand Down

0 comments on commit e5c9c30

Please sign in to comment.