Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove copilot comment
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed Dec 13, 2022
1 parent b92395d commit ebdb4d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/data/cart/notify-quantity-changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const notifyIfQuantityLimitsChanged = ( oldCart: Cart, newCart: Cart ) => {
return item.key === cartItem.key;
} );

// If getCartData has not finished resolving, then this is the first load. We should also check for min/max
// quantity discrepancies here.
// If getCartData has not finished resolving, then this is the first load.
const isFirstLoad = oldCart.items.length === 0;

// Item has been removed, we don't need to do any more checks.
Expand Down

0 comments on commit ebdb4d4

Please sign in to comment.