Skip to content

Commit

Permalink
Fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmjuhasz committed Jan 17, 2025
1 parent 4931093 commit 6377ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const getShouldShowPricingPage = createRegistrySelector( select => () =>
// If the settings are not available in the store yet, use the default settings.
return (
settings?.[ SHOW_PRICING_PAGE_KEY ] ??
getSocialScriptData().settings.socialPlugin.show_pricing_page
getSocialScriptData().settings?.socialPlugin?.show_pricing_page
);
} ) as ( state: object ) => boolean;
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getSocialNotesEnabled = createRegistrySelector( select => () => {
// If the settings are not available in the store yet, use the default settings.
return (
settings?.[ SOCIAL_NOTES_ENABLED_KEY ] ??
getSocialScriptData().settings.socialPlugin.social_notes_enabled
getSocialScriptData().settings?.socialPlugin?.social_notes_enabled
);
} ) as ( state: object ) => boolean;

Expand All @@ -36,6 +36,6 @@ export const getSocialNotesConfig = createRegistrySelector( select => () => {
// If the settings are not available in the store yet, use the default settings.
return (
settings?.[ SOCIAL_NOTES_CONFIG_KEY ] ??
getSocialScriptData().settings.socialPlugin.social_notes_config
getSocialScriptData().settings?.socialPlugin?.social_notes_config
);
} ) as ( state: object ) => SocialNotesConfig;

0 comments on commit 6377ca1

Please sign in to comment.