Skip to content

Commit 7c01755

Browse files
committed
resurface banner on reject;
1 parent 8c2b7e5 commit 7c01755

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

clients/fides-js/__tests__/lib/consent-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ describe("shouldResurfaceBanner", () => {
345345
},
346346
savedConsent: mockSavedConsent,
347347
options: {},
348-
expected: false,
348+
expected: true,
349349
},
350350
{
351351
label: "returns false for TCF when there are no vendors",

clients/fides-js/src/lib/consent-utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ export const shouldResurfaceBanner = (
281281
if (!!options && isConsentOverride(options)) {
282282
return false;
283283
}
284+
285+
if (
286+
cookie.fides_meta.consentMethod === ConsentMethod.DISMISS ||
287+
cookie.fides_meta.consentMethod === ConsentMethod.REJECT
288+
) {
289+
return true;
290+
}
291+
284292
if (experience.meta?.version_hash) {
285293
return experience.meta.version_hash !== cookie.tcf_version_hash;
286294
}

0 commit comments

Comments
 (0)