From 2b520e9b79876d61fb78e866d80245b434c79a0b Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Tue, 2 Jan 2024 11:03:33 -0800 Subject: [PATCH] Fixing condition for rendering overlay (#4515) --- CHANGELOG.md | 1 + clients/fides-js/src/components/Overlay.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 636e8f9fe0f..2e405aa0815 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ The types of changes are: - Fixed incorrect Compass button behavior in system form [#4508](https://github.com/ethyca/fides/pull/4508) - Omit certain fields from system payload when empty [#4508](https://github.com/ethyca/fides/pull/4525) - Fixed issues with Compass vendor selector behavior [#4521](https://github.com/ethyca/fides/pull/4521) +- Fixed an issue where the background overlay remained visible after saving consent preferences [#4515](https://github.com/ethyca/fides/pull/4515) ### Changed - Upgrade to use Fideslang `3.0.0` and remove associated concepts [#4502](https://github.com/ethyca/fides/pull/4502) diff --git a/clients/fides-js/src/components/Overlay.tsx b/clients/fides-js/src/components/Overlay.tsx index 6ed1c3e8e11..52c747e147a 100644 --- a/clients/fides-js/src/components/Overlay.tsx +++ b/clients/fides-js/src/components/Overlay.tsx @@ -150,7 +150,7 @@ const Overlay: FunctionComponent = ({ return (
- {bannerIsOpen && window.Fides.options.preventDismissal && ( + {showBanner && bannerIsOpen && window.Fides.options.preventDismissal && (
)} {showBanner