Skip to content

Commit

Permalink
fix(cookie-control): correct local cloned state configuration usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Jan 14, 2023
1 parent 189e937 commit 393d59f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/runtime/components/CookieControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
:id="resolveTranslatable(cookie.name)"
type="checkbox"
:checked="
cookiesEnabled?.includes(cookie) ||
getCookieIds(localCookiesEnabled)?.includes(
getCookieId(cookie)
) ||
(Cookies.get(
moduleOptions.cookieNameIsConsentGiven
) !== 'true' &&
Expand Down Expand Up @@ -159,7 +161,7 @@ import Cookies from 'js-cookie'
import { ref, computed, onBeforeMount, watch } from 'vue'
import { Cookie, CookieType, Locale, Translatable } from '../types'
import { getCookieIds, useResolveTranslatable } from '../methods'
import { getCookieId, getCookieIds, useResolveTranslatable } from '../methods'
import { useCookieControl } from '#imports'
Expand Down

0 comments on commit 393d59f

Please sign in to comment.