diff --git a/views/js/post-comment.js b/views/js/post-comment.js index cf593b5..c08bedb 100644 --- a/views/js/post-comment.js +++ b/views/js/post-comment.js @@ -40,6 +40,8 @@ jQuery(document).ready(function () { const commentPostErrorModal = $('#product-comment-post-error'); const criterionsList = $('#criterions_list'); + if (typeof productCommentMandatoryMessage === 'undefined') + productCommentMandatoryMessage = 'Please choose a rating for your review.'; criterionsList.append('