diff --git a/assets/js/blocks/reviews/editor-container-block.js b/assets/js/blocks/reviews/editor-container-block.js index 54491b75e8d..1d1c0c579b3 100644 --- a/assets/js/blocks/reviews/editor-container-block.js +++ b/assets/js/blocks/reviews/editor-container-block.js @@ -74,7 +74,7 @@ EditorContainerBlock.propTypes = { attributes: PropTypes.object.isRequired, icon: PropTypes.node.isRequired, name: PropTypes.string.isRequired, - noReviewsPlaceholder: PropTypes.element.isRequired, + noReviewsPlaceholder: PropTypes.elementType.isRequired, className: PropTypes.string, }; diff --git a/assets/js/blocks/reviews/reviews-by-category/block.tsx b/assets/js/blocks/reviews/reviews-by-category/block.tsx index b689206c672..dc412191bea 100644 --- a/assets/js/blocks/reviews/reviews-by-category/block.tsx +++ b/assets/js/blocks/reviews/reviews-by-category/block.tsx @@ -160,7 +160,7 @@ const ReviewsByCategoryEditor = ( { 'Reviews by Category', 'woo-gutenberg-products-block' ) } - noReviewsPlaceholder={ NoReviewsPlaceholder() } + noReviewsPlaceholder={ NoReviewsPlaceholder } /> );