Skip to content

Commit

Permalink
Add early return in updateQuantityRules function if no quantity selec…
Browse files Browse the repository at this point in the history
…tor is present
  • Loading branch information
Roi-Arthur committed Jun 11, 2024
1 parent b3b26e1 commit 02616d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/product-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ if (!customElements.get('product-info')) {
}

updateQuantityRules(sectionId, html) {
if (!this.quantityInput) return;
this.setQuantityBoundries();

const quantityFormUpdated = html.getElementById(`Quantity-Form-${sectionId}`);
Expand Down

0 comments on commit 02616d4

Please sign in to comment.