diff --git a/cookie-manager/react/src/lib/components/CookieLibrary/Tables/AdditionalCookiesTable.tsx b/cookie-manager/react/src/lib/components/CookieLibrary/Tables/AdditionalCookiesTable.tsx
index 5faa92b..c2b6dc1 100644
--- a/cookie-manager/react/src/lib/components/CookieLibrary/Tables/AdditionalCookiesTable.tsx
+++ b/cookie-manager/react/src/lib/components/CookieLibrary/Tables/AdditionalCookiesTable.tsx
@@ -4,7 +4,7 @@ export function AdditionalCookiesTable(): React.JSX.Element {
const { additionalCookies } = useCookieManagerContext()
return (
<>
- {additionalCookies.value?.length && (
+ {additionalCookies.value?.length > 0 && (
diff --git a/cookie-manager/react/src/lib/components/CookieLibrary/Tables/NecessaryCookiesTable.tsx b/cookie-manager/react/src/lib/components/CookieLibrary/Tables/NecessaryCookiesTable.tsx
index 5fdc180..9e534a1 100644
--- a/cookie-manager/react/src/lib/components/CookieLibrary/Tables/NecessaryCookiesTable.tsx
+++ b/cookie-manager/react/src/lib/components/CookieLibrary/Tables/NecessaryCookiesTable.tsx
@@ -4,7 +4,7 @@ export function NecessaryCookiesTable(): React.JSX.Element {
const { necessaryCookies } = useCookieManagerContext()
return (
<>
- {necessaryCookies.value?.length && (
+ {necessaryCookies.value?.length > 0 && (
diff --git a/cookie-manager/react/src/lib/components/CookieManagerProvider/CookieManagerProvider.tsx b/cookie-manager/react/src/lib/components/CookieManagerProvider/CookieManagerProvider.tsx
index f275cb7..22661d2 100644
--- a/cookie-manager/react/src/lib/components/CookieManagerProvider/CookieManagerProvider.tsx
+++ b/cookie-manager/react/src/lib/components/CookieManagerProvider/CookieManagerProvider.tsx
@@ -25,7 +25,8 @@ export function CookieManagerProvider({ children }: React.PropsWithChildren): Re
}
useEffect(() => {
- getAdditionalCookiesFromConfiguredServices(configuredServices)
+ const _additionalCookies = getAdditionalCookiesFromConfiguredServices(configuredServices)
+ setAdditionalCookies(_additionalCookies)
}, [configuredServices])
return {children}