Skip to content

Commit 42b03bb

Browse files
swnsmawojtekn
authored andcommitted
Simplify.
1 parent 847115e commit 42b03bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/update-shopping-cart.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ define([
3434
onSubmit: function (event) {
3535
var action = this.element.find(this.options.updateCartActionContainer).val();
3636

37-
if (!this.options.validationURL) {
38-
return true;
39-
}
40-
41-
if (action === 'empty_cart') {
37+
if (!this.options.validationURL || action === 'empty_cart') {
4238
return true;
4339
}
4440

0 commit comments

Comments
 (0)