Skip to content

Commit

Permalink
Update isPremium check
Browse files Browse the repository at this point in the history
  • Loading branch information
dilirity committed Feb 9, 2024
1 parent cd720f0 commit 5d0c2d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const Index = () => {
const { canResizeImages } = Jetpack_Boost;

const premiumFeatures = usePremiumFeatures();
const isPremium = premiumFeatures.length > 0;

return (
<div className="jb-container--narrow">
Expand Down Expand Up @@ -188,7 +187,7 @@ const Index = () => {
</p>
}
>
<QualitySettings isPremium={ isPremium } />
<QualitySettings isPremium={ premiumFeatures.includes( 'image-cdn-quality' ) } />
</Module>

<div className={ styles.settings }>
Expand Down

0 comments on commit 5d0c2d9

Please sign in to comment.