Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jul 24, 2024
1 parent 699ad6d commit b73dd69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from './utils';

const getShouldDisableSyncFilter = ( sourceFilter ) => sourceFilter !== 'all';
const getShouldHideNonUserSources = ( category ) => {
const getShouldHideSourcesFilter = ( category ) => {
return category.name === myPatternsCategory.name;
};

Expand Down Expand Up @@ -71,7 +71,7 @@ export function PatternsFilter( {

// We also hide the directory and theme source filter if the category is `myPatterns`
// otherwise there will only be one option available.
const shouldHideSourcesFilter = getShouldHideNonUserSources( category );
const shouldHideSourcesFilter = getShouldHideSourcesFilter( category );

const patternSyncMenuOptions = useMemo(
() => [
Expand Down

0 comments on commit b73dd69

Please sign in to comment.