Skip to content

Commit

Permalink
also remove exceedsSiteStorageLimits condition
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskmnds committed May 22, 2024
1 parent aecfe64 commit 9196728
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@ const usePricingMetaForGridPlans = ( {
return addOn?.featureSlugs?.includes( selectedStorageOption );
} )
: null;
const storageAddOnPrices = selectedStorageAddOn?.exceedsSiteStorageLimits
? null
: selectedStorageAddOn?.prices;
const storageAddOnPriceMonthly = storageAddOnPrices?.monthlyPrice || 0;
const storageAddOnPriceYearly = storageAddOnPrices?.yearlyPrice || 0;
const storageAddOnPriceMonthly = selectedStorageAddOn?.prices?.monthlyPrice || 0;
const storageAddOnPriceYearly = selectedStorageAddOn?.prices?.yearlyPrice || 0;

/**
* 0. No plan or sitePlan (when selected site exists): planSlug is for a priceless plan.
Expand Down

0 comments on commit 9196728

Please sign in to comment.