Skip to content

Commit

Permalink
Fix when no validator is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed Dec 18, 2018
1 parent 31117b5 commit cf6f7e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ store.validator = null;
// Also makes sure to refresh the receipts.
//
store._validator = function(product, callback, isPrepared) {
if (!store.validator)
if (!store.validator) {
callback(true, product);
return;
}

if (store._prepareForValidation && isPrepared !== true) {
store._prepareForValidation(product, function() {
Expand Down

0 comments on commit cf6f7e8

Please sign in to comment.