Skip to content

Commit 5415e99

Browse files
committed
M2C-21768 Fix tests
1 parent a5a2cbc commit 5415e99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ define([
236236
var element = $(this.options.qtyInfo);
237237

238238
if (!(element.validation() && element.validation('isValid'))) {
239-
event.preventDefault();
240-
event.stopPropagation();
241-
return;
242-
}
243-
},
239+
event.preventDefault();
240+
event.stopPropagation();
244241

242+
return;
243+
}
244+
}
245245
});
246246

247247
return $.mage.addToWishlist;

0 commit comments

Comments
 (0)