Skip to content

Commit

Permalink
simplify flag assignment here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell committed Nov 22, 2023
1 parent 2a3be01 commit 8494c2f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export default function useAICheckout(): {
isRedirecting: boolean;
} {
const tierPlansEnabled =
window?.Jetpack_Editor_Initial_State?.available_blocks[ 'ai-enable-tier-plans-ui' ] &&
window.Jetpack_Editor_Initial_State.available_blocks[ 'ai-enable-tier-plans-ui' ].available;
window?.Jetpack_Editor_Initial_State?.available_blocks[ 'ai-enable-tier-plans-ui' ]?.available;

const { nextTier } = useAiFeature();

Expand Down

0 comments on commit 8494c2f

Please sign in to comment.