Skip to content

Commit

Permalink
FFWEB-3231: Reset useId in WebComponents after user logout
Browse files Browse the repository at this point in the history
Reset useId in WebComponents after user logout
  • Loading branch information
Rayn93 committed Nov 21, 2024
1 parent c9bb247 commit 29fac5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Resources/views/storefront/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}
Expand Down

0 comments on commit 29fac5f

Please sign in to comment.