We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac802d commit 9014f71Copy full SHA for 9014f71
1 file changed
client/modules/User/components/CookieConsent.tsx
@@ -135,18 +135,8 @@ export function CookieConsent({ hide = false }: { hide?: boolean }) {
135
function mergeCookieConsent() {
136
if (user.authenticated) {
137
if (!user.cookieConsent) {
138
- return;
139
- }
140
- if (
141
- ![
142
- CookieConsentOptions.ALL,
143
- CookieConsentOptions.ESSENTIAL,
144
- CookieConsentOptions.NONE
145
- ].includes(user.cookieConsent)
146
- ) {
147
+ user.cookieConsent = CookieConsentOptions.NONE;
148
}
149
-
150
if (
151
user.cookieConsent === CookieConsentOptions.NONE &&
152
cookieConsent !== CookieConsentOptions.NONE
0 commit comments