Skip to content

Commit

Permalink
Merge branch 'main' into develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Sep 20, 2024
2 parents 6ec780e + cd076ee commit eaf3669
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/js/components/settings/SettingsAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ import { useFeature } from '../../hooks/useFeature';
export default function SettingsAdmin() {
const audienceSegmentationEnabled = useFeature( 'audienceSegmentation' );

const configuredAudiences = useSelect( ( select ) =>
select( CORE_USER ).getConfiguredAudiences()
const configuredAudiences = useSelect(
( select ) =>
audienceSegmentationEnabled &&
select( CORE_USER ).getConfiguredAudiences()
);
const isAnalyticsConnected = useSelect( ( select ) =>
select( CORE_MODULES ).isModuleConnected( 'analytics-4' )
Expand Down

0 comments on commit eaf3669

Please sign in to comment.