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

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.
package/dist/index.mjs CHANGED
@@ -2756,10 +2756,10 @@ function useAddPlusMemberProductsToCart({
2756
2756
  if (selectedPlusMemberMode === "annual" /* ANNUAL */ && hasAnnualPlus) {
2757
2757
  return void 0;
2758
2758
  }
2759
- if (profile.isMonthlyPlus && selectedPlusMemberMode === "monthly" /* MONTHLY */) {
2759
+ if (profile?.isMonthlyPlus && selectedPlusMemberMode === "monthly" /* MONTHLY */) {
2760
2760
  return void 0;
2761
2761
  }
2762
- if (!profile.isAnnualPlus && selectedPlusMemberMode === "annual" /* ANNUAL */) {
2762
+ if (!profile?.isAnnualPlus && selectedPlusMemberMode === "annual" /* ANNUAL */) {
2763
2763
  return void 0;
2764
2764
  }
2765
2765
  return selectedPlusMemberProduct;