From ce1f94a1e7fccb5172d9ad50ec67cc18ea68dfc1 Mon Sep 17 00:00:00 2001 From: Jeremy Yip Date: Tue, 26 Nov 2024 14:41:33 -0800 Subject: [PATCH] Fix disabling storage selection logic --- .../src/plans/hooks/use-pricing-meta-for-grid-plans.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-stores/src/plans/hooks/use-pricing-meta-for-grid-plans.ts b/packages/data-stores/src/plans/hooks/use-pricing-meta-for-grid-plans.ts index 88297dd5ae93c..07ac028489481 100644 --- a/packages/data-stores/src/plans/hooks/use-pricing-meta-for-grid-plans.ts +++ b/packages/data-stores/src/plans/hooks/use-pricing-meta-for-grid-plans.ts @@ -140,7 +140,7 @@ const usePricingMetaForGridPlans = ( { const sitePlan = sitePlans.data?.[ planSlug ]; const selectedStorageOption = selectedStorageOptions?.[ planSlug ]; const selectedStorageAddOn = - selectedStorageOption && ! reflectStorageSelectionInPlanPrices + selectedStorageOption && reflectStorageSelectionInPlanPrices ? storageAddOns?.find( ( addOn ) => { return addOn?.addOnSlug === selectedStorageOption; } )