Skip to content

How to hide the Reviews tab when there are no reviews

I am using Reviews in the project. We have the form itself hidden, the only thing we display is a list of reviews generated from the admin panel. I would like to be able to hide the Reviews tab when there are no reviews, i.e. .review-list is empty. How and where can I do this? Unfortunately, the custom written script runs much earlier by which the tab does not want to hide for me. Please help, thank you.