Empty results showing 1 item


I’m having trouble with the filters. When I filter an element that yields no results, the counter displays “Showing 1 of 82 fairs” and the “empty” message does not appear. Could you help me?

Here is the preview link.

Hey @gerardo! There is an issue that is preventing me from debugging the site. There seem to be some syntax errors on your site with the embedded scripts. I did notice that the result count is correctly changed to 0 after you interact with the sorting UI.

This could be related to the errors I mentioned earlier, can you please ensure the extra scripts are correctly added and formatted?

This is the error I get from prettier

["ERROR" - 4:56:43 PM] Error formatting document.
["ERROR" - 4:56:43 PM] Unexpected closing tag "script". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (291:634)