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 11, 2023
1 parent e9bda15 commit 35233de
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 35233de

Please sign in to comment.