Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
swnsma authored Feb 22, 2019
1 parent f82299b commit a1578b5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ define([
onSubmit: function (event) {
var action = this.element.find(this.options.updateCartActionContainer).val();

if (!this.options.validationURL) {
return true;
}

if (action === 'empty_cart') {
if (!this.options.validationURL || action === 'empty_cart') {
return true;
}

Expand Down

0 comments on commit a1578b5

Please sign in to comment.