Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jboland88 committed Jan 31, 2025
1 parent 2f12118 commit b47657e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ const ProductCardsSection: FC< ProductCardsSectionProps > = ( { noticeMessage }
data: { ownedProducts, unownedProducts },
} = useProductsByOwnership();

const { canUserViewStats } = getMyJetpackWindowInitialState();

const { canUserViewStats, userIsAdmin } = getMyJetpackWindowInitialState();
const unownedSectionTitle = useMemo( () => {
return ownedProducts.length > 0
? __( 'Discover more', 'jetpack-my-jetpack' )
Expand Down Expand Up @@ -147,7 +146,7 @@ const ProductCardsSection: FC< ProductCardsSectionProps > = ( { noticeMessage }
</AdminSectionHero>
) }

{ filteredUnownedProducts.length > 0 && (
{ userIsAdmin && filteredUnownedProducts.length > 0 && (
<Container horizontalSpacing={ 6 } horizontalGap={ noticeMessage ? 3 : 6 }>
<Col>
<Col sm={ 4 } md={ 8 } lg={ 12 } className={ styles.cardListTitle }>
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/my-jetpack/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ interface Window {
isAtomic: boolean;
sandboxedDomain: string;
isDevVersion: boolean;
userIsAdmin: string;
userIsAdmin: boolean;
userIsNewToJetpack: string;
};
JP_CONNECTION_INITIAL_STATE: {
Expand Down

0 comments on commit b47657e

Please sign in to comment.