# User is not able to vote. Errors in the console

Let's consider the following scenario:&#x20;

When a user tries to vote as a guest (not registered) user, there is the following error in the console:

`Uncaught ReferenceError: Competition is not defined onclick https://yoursite.com/contests/south-vacation/67-my-entry:1`

However, the user can vote as a registered user. Why so?

**This error occurs because of using 3rd party extension which optimizes scripts.**&#x20;

NorrCompetition component loads minified script and when 3rd party extension tries to compress a file which is already compressed, it leads to potential and real issues.

If your website has JCH Optimize extension which is configured and running, then please include **competition.min.js** file to excludes list as it does not work when combined by JCH optimize.&#x20;

The better approach for stable perfomance of NorrCompetition component is to use **"Excluding files from a particular extension"** and exclude all **"com\_competition"** Javascript files.

See JCH Optimize documentation: [Chapter 5. Optimizing Your Site With JCH Optimize](https://www.jch-optimize.net/documentation/minify-css-and-javascript.html#idm46741194766144) (Procedure 5.1. Excluding files and inline scripts)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.norrnext.com/norrcompetition/user-is-not-able-to-vote.-errors-in-the-console.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
