Skip to content

Commit

Permalink
Fix consent banner date invalidation
Browse files Browse the repository at this point in the history
Closes #48
  • Loading branch information
robdekort committed Nov 13, 2024
1 parent af23eff commit e0f7f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/_consent_banner.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 class="text-2xl font-bold">{{ trans:strings.consent_title }}</h2>
return {
data: Alpine.store('consentBanner').data,
init() {
if (Alpine.store('consentBanner').getConsentDate() < '{{ seo:consent_revoke_before format="U" }}') {
if ({{ seo:consent_revoke_before | bool_string }} && Alpine.store('consentBanner').getConsentDate() < '{{ seo:consent_revoke_before format="U" }}') {
Alpine.store('consentBanner').invalidate()
}
if (Alpine.store('consentBanner').useConsentAPI() && Alpine.store('consentBanner').getConsent()) {
Expand Down

0 comments on commit e0f7f6b

Please sign in to comment.