Skip to content

Commit

Permalink
chore: fixing lint errors TETP-227
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkojamG committed Dec 17, 2024
1 parent f22dc58 commit fe42f3d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ const CookieConsent: React.FC<{ asPage?: boolean }> = ({ asPage = false }) => {
window._paq.push(['requireConsent']);
// eslint-disable-next-line no-underscore-dangle, unicorn/no-array-push-push
window._paq.push(['requireCookieConsent']);
// eslint-disable-next-line sonarjs/no-collapsible-if
} else if (consents.matomo === false) {
// tell matomo to forget conset
// eslint-disable-next-line no-underscore-dangle, unicorn/no-array-push-push
window._paq.push(['forgetConsentGiven']);
// eslint-disable-next-line no-underscore-dangle, unicorn/no-lonely-if
if (window && window._paq) {
// eslint-disable-next-line no-underscore-dangle, unicorn/no-array-push-push
window._paq.push(['forgetConsentGiven']);
}
}
},
focusTargetSelector: '#main_content',
Expand Down

0 comments on commit fe42f3d

Please sign in to comment.