diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7e6af3..79a21e25 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased ### Improve - Add the ability to set a name for the CategoryPath field (category page) +- Reset useId in WebComponents after user logout ### Change - Upgrade Web Components version to v5.0.0-pre.4 diff --git a/src/Resources/views/storefront/base.html.twig b/src/Resources/views/storefront/base.html.twig index a1e83d12..f3a98733 100644 --- a/src/Resources/views/storefront/base.html.twig +++ b/src/Resources/views/storefront/base.html.twig @@ -121,9 +121,7 @@ } else { if (ffCookies['ff_has_just_logged_out']) { clearCookie('ff_has_just_logged_out'); - //Need to fix in webcomponents - //Now reset userId is impossible - // factfinder.config.setFFParams({userId: 'undefined'}); + factfinder.config.setFFParams({userId: undefined}); } }