Skip to content

Commit

Permalink
Use gpcEnabled and factor into doNotSell flag
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsola-guardian committed Sep 16, 2024
1 parent 12118c2 commit e7cf2c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const getConsentState: () => Promise<CCPAConsentState> = async () => {
const uspData = await getUSPData();

return {
doNotSell: uspData.uspString.charAt(2) === 'Y',
doNotSell: uspData.uspString.charAt(2) === 'Y' || uspData.gpcEnabled,
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export interface CCPAConsentState {
export interface CCPAData {
version: number;
uspString: string;
gpcEnabled: boolean;
}

0 comments on commit e7cf2c8

Please sign in to comment.