Skip to content

Conversation

@pm-manasi-moghe
Copy link
Collaborator

No description provided.

var consentStr = window.consentData || "";
if (consentStr === undefined || consentStr.length === 0 || consentStr === '1---' || consentStr === '1NNN' || consentStr === '1YNN')
retValue = true;
else if (consentStr === '1YYY' || consentStr === '1YYN')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
else if (consentStr === '1YYY' || consentStr === '1YYN')
else if (consentStr === "1YYY" || consentStr === '1YYN')

exports.isCCPAConsentDenied = function() {
var retValue = true;
var consentStr = window.consentData || "";
if (consentStr === undefined || consentStr.length === 0 || consentStr === '1---' || consentStr === '1NNN' || consentStr === '1YNN')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
if (consentStr === undefined || consentStr.length === 0 || consentStr === '1---' || consentStr === '1NNN' || consentStr === '1YNN')
if (consentStr === undefined || consentStr.length === 0 || consentStr === "1---" || consentStr === '1NNN' || consentStr === '1YNN')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants