From 493611a720567bded46caa72d804cd349299a05d Mon Sep 17 00:00:00 2001 From: Gaauwe Rombouts Date: Thu, 5 Mar 2026 14:22:23 +0100 Subject: [PATCH] docs: Fix typo in consent banner hide check (#50823) Fixes a typo in the consent banner check on docs pages, which makes the opt-out logic work correctly. Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --- docs/theme/analytics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/theme/analytics.js b/docs/theme/analytics.js index 6e9df27f30fc6d38ba6fb322f9888fda089bb20c..84d9705bfea223655270f5fb2541426b50a98365 100644 --- a/docs/theme/analytics.js +++ b/docs/theme/analytics.js @@ -55,7 +55,7 @@ document.addEventListener("DOMContentLoaded", () => { consentStore.subscribe((state) => { const hideBanner = state.activeUI === "none" || - (state.activeUI === "banner" && state.mode === "opt-out"); + (state.activeUI === "banner" && state.model === "opt-out"); banner.style.display = hideBanner ? "none" : "block"; if (state.activeUI === "dialog" && previousActiveUI !== "dialog") {