Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix service reject issue & setCookieData() method deletes lastConsentTimestamp field #701

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

peaemaye
Copy link
Contributor

@peaemaye peaemaye commented Jun 27, 2024

Fixes #700

The retrieveState method of api.js currently sets the _enabledServices before _acceptedServices so the enabled services don't include services read from the cc-cookie. I think reversing this order is sufficient to fix it.

Fixes #702

The setCookieData() method can accidentally delete the lastConsentTimestamp field from the cc-cookie.

Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cookieconsent-docs ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 11:39am

Copy link

netlify bot commented Jun 27, 2024

Deploy Preview for cookieconsentv3-playground canceled.

Name Link
🔨 Latest commit 8785e50
🔍 Latest deploy log https://app.netlify.com/sites/cookieconsentv3-playground/deploys/667d4f6d765e06000835d070

@peaemaye peaemaye changed the title Fix service reject issue Fix service reject issue & setCookieData() method deletes lastConsentTimestamp field Jun 27, 2024
@peaemaye
Copy link
Contributor Author

I think this also fixes #696 which is the same as #700

@danielpaul
Copy link

Came across the same issue of lastConsentTimestamp not being set (basically was getting deleted) and spent a lot of time debugging 🙈

@orestbida orestbida merged commit da3ca52 into orestbida:master Jul 2, 2024
7 checks passed
@orestbida
Copy link
Owner

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants