diff --git a/src/app.js b/src/app.js index c4fc9b5..2bc9d08 100644 --- a/src/app.js +++ b/src/app.js @@ -335,7 +335,7 @@ function consentBannerJsMain(config) { ev.preventDefault(); const formData = new FormData(ev.target); - consentState = Object.fromEntries(formData); + const consentState = Object.fromEntries(formData); saveConsentState(consentState); updateSettings(settings, config, consentState); hideMain(main);