@anker-in/shopify-react 0.1.1-beta.5 → 0.1.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2659,10 +2659,10 @@ function useAddPlusMemberProductsToCart({
2659
2659
  if (selectedPlusMemberMode === "annual" /* ANNUAL */ && hasAnnualPlus) {
2660
2660
  return void 0;
2661
2661
  }
2662
- if (profile.isMonthlyPlus && selectedPlusMemberMode === "monthly" /* MONTHLY */) {
2662
+ if (profile?.isMonthlyPlus && selectedPlusMemberMode === "monthly" /* MONTHLY */) {
2663
2663
  return void 0;
2664
2664
  }
2665
- if (!profile.isAnnualPlus && selectedPlusMemberMode === "annual" /* ANNUAL */) {
2665
+ if (!profile?.isAnnualPlus && selectedPlusMemberMode === "annual" /* ANNUAL */) {
2666
2666
  return void 0;
2667
2667
  }
2668
2668
  return selectedPlusMemberProduct;