Skip to content

Commit

Permalink
fix(plugin): correct cookie value usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Mar 21, 2024
1 parent cb49528 commit 6372499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const plugin: Plugin<{ cookies: State }> = defineNuxtPlugin((_nuxtApp) => {
).value?.split('|')

const isConsentGiven = ref<boolean | undefined>(
cookieIsConsentGiven === undefined
cookieIsConsentGiven.value === undefined
? undefined
: cookieIsConsentGiven.value === getAllCookieIdsString(moduleOptions),
)
Expand Down

0 comments on commit 6372499

Please sign in to comment.