diff --git a/frontend/src/ts/popups/cookie-popup.ts b/frontend/src/ts/popups/cookie-popup.ts index 51febc837..61a4f39bf 100644 --- a/frontend/src/ts/popups/cookie-popup.ts +++ b/frontend/src/ts/popups/cookie-popup.ts @@ -40,7 +40,10 @@ export function show(): void { .css("opacity", 0) .removeClass("hidden") .animate({ opacity: 1 }, 100, () => { - if ($("#cookiePopupWrapper").outerHeight(true) === 0) { + if ( + $("#cookiePopupWrapper").is(":visible") === false || + $("#cookiePopupWrapper").outerHeight(true) === 0 + ) { visible = false; } else { visible = true;