Skip to content

Commit

Permalink
Fix: show upgradeable storage on all multi year plans
Browse files Browse the repository at this point in the history
  • Loading branch information
ddc22 committed Jan 24, 2024
1 parent 1f7dfda commit 9b29487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ class FeaturesGrid extends Component< FeaturesGridProps > {

const shouldRenderStorageTitle =
storageOptions.length > 0 &&
( storageOptions.length === 1 || intervalType !== 'yearly' || ! showUpgradeableStorage );
( storageOptions.length === 1 || intervalType === 'monthly' || ! showUpgradeableStorage );
const canUpgradeStorageForPlan = isStorageUpgradeableForPlan( {
intervalType,
showUpgradeableStorage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { StorageOption } from '@automattic/calypso-products';
* Don't show storage add-on-upsells for:
* - the enterprise plan which has no storage options
* - plans that only have 1 default storage option ( and no upgrades )
* - monthly or multi-year plans
* - monthly plans
* - environments with a disabled feature flag
*/
export const isStorageUpgradeableForPlan = ( {
Expand All @@ -15,4 +15,4 @@ export const isStorageUpgradeableForPlan = ( {
intervalType: string;
showUpgradeableStorage: boolean;
storageOptions: StorageOption[];
} ) => storageOptions.length > 1 && intervalType === 'yearly' && showUpgradeableStorage;
} ) => storageOptions.length > 1 && intervalType !== 'monthly' && showUpgradeableStorage;

0 comments on commit 9b29487

Please sign in to comment.