Skip to content

Commit 9014f71

Browse files
committed
update logic for cookie consent check
1 parent aac802d commit 9014f71

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

client/modules/User/components/CookieConsent.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,8 @@ export function CookieConsent({ hide = false }: { hide?: boolean }) {
135135
function mergeCookieConsent() {
136136
if (user.authenticated) {
137137
if (!user.cookieConsent) {
138-
return;
139-
}
140-
if (
141-
![
142-
CookieConsentOptions.ALL,
143-
CookieConsentOptions.ESSENTIAL,
144-
CookieConsentOptions.NONE
145-
].includes(user.cookieConsent)
146-
) {
147-
return;
138+
user.cookieConsent = CookieConsentOptions.NONE;
148139
}
149-
150140
if (
151141
user.cookieConsent === CookieConsentOptions.NONE &&
152142
cookieConsent !== CookieConsentOptions.NONE

0 commit comments

Comments
 (0)