diff --git a/packages/edit-post/src/components/init-pattern-modal/index.js b/packages/edit-post/src/components/init-pattern-modal/index.js index 4288557ec712d6..1bfeadd73f94a6 100644 --- a/packages/edit-post/src/components/init-pattern-modal/index.js +++ b/packages/edit-post/src/components/init-pattern-modal/index.js @@ -27,8 +27,8 @@ export default function InitPatternModal() { isNewPost: isCleanNewPost(), }; }, [] ); - const [ isModalOpen, setIsModalOpen ] = useState( () => - isNewPost && postType === 'wp_block' ? true : false + const [ isModalOpen, setIsModalOpen ] = useState( + () => isNewPost && postType === 'wp_block' ); if ( postType !== 'wp_block' || ! isNewPost ) {