Skip to content

Commit

Permalink
remove references to tierPlansEnabled, they never are now
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell committed Nov 27, 2024
1 parent e7808e1 commit b7183b4
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ const JetpackAndSettingsContent = ( {
};

export default function AiAssistantPluginSidebar() {
const { requireUpgrade, upgradeType, currentTier, tierPlansEnabled, isOverLimit } =
useAiFeature();
const { checkoutUrl } = useAICheckout();
const { requireUpgrade, upgradeType, currentTier, isOverLimit } = useAiFeature();
const { tracks } = useAnalytics();

const isViewable = useSelect( select => {
Expand All @@ -185,8 +183,7 @@ export default function AiAssistantPluginSidebar() {
tracks.recordEvent( 'jetpack_ai_panel_open', { placement } );
};

const showUsagePanel =
planType === PLAN_TYPE_FREE || ( tierPlansEnabled && planType !== PLAN_TYPE_UNLIMITED );
const showUsagePanel = planType === PLAN_TYPE_FREE;
const showFairUsageNotice = planType === PLAN_TYPE_UNLIMITED && isOverLimit;
const isBreveAvailable = getBreveAvailability();

Expand Down Expand Up @@ -244,14 +241,6 @@ export default function AiAssistantPluginSidebar() {
busy={ false }
disabled={ requireUpgrade }
/>
{ requireUpgrade && tierPlansEnabled && (
<Upgrade
placement={ PLACEMENT_PRE_PUBLISH }
type={ upgradeType }
currentTier={ currentTier }
upgradeUrl={ checkoutUrl }
/>
) }
</>
</PluginPrePublishPanel>
</>
Expand Down

0 comments on commit b7183b4

Please sign in to comment.