diff --git a/packages/blocks/src/components/WordPressBlocksProvider.tsx b/packages/blocks/src/components/WordPressBlocksProvider.tsx index 461eb0d79..f117189e6 100644 --- a/packages/blocks/src/components/WordPressBlocksProvider.tsx +++ b/packages/blocks/src/components/WordPressBlocksProvider.tsx @@ -72,7 +72,7 @@ export function useBlocksTheme(): BlocksTheme { // If it's an empty object, the provider hasn't been initialized.± if ( typeof WordPressBlocksContext === 'undefined' || - typeof WordPressBlocksContext === 'undefined' + typeof WordPressThemeContext === 'undefined' ) { throw new Error( 'useBlocksTheme hook was called outside of context, make sure your app is wrapped with WordPressBlocksProvider',