# CONSENT_FORGED: Consent given by the component

> Consent given by the component

> Esta página ainda não tem tradução para o português; este é o texto em inglês. (This page is not translated yet: the English text follows.)

| Severity | Fault                         | Stage        |
| -------- | ----------------------------- | ------------ |
| error    | customer (the source package) | build output |

## What it means

The component calls the consent state's setGiven with something other than false outside an event handler (at render, in an effect, in a timer), so the box is ticked without the visitor's act. Consent under the LGPD is the visitor's affirmative act; a forged proof is a submission of personal data without consent, so it needs a person's review: it is refused until then (rule consent-forged).

## How to fix

Render &lt;Consent consent={consent} />, or call consent.setGiven only in the onChange of your own checkbox.
