Skip to content

Commit ab20668

Browse files
author
Paweł Piórkowski
committed
fix/OP-565 [Wishlist] Issue with multiple wishlists using the same token
1 parent a0223b8 commit ab20668

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/CommandHandler/Wishlist/CreateNewWishlistHandler.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ public function __invoke(CreateNewWishlist $createNewWishlist): int
4444
$token = $this->tokenStorage->getToken();
4545
$user = $this->tokenUserResolver->resolve($token);
4646

47-
$wishlistCookieToken = $user instanceof ShopUserInterface
48-
? $this->wishlistCookieTokenResolver->resolve()
49-
: $this->wishlistCookieTokenResolver->new();
47+
// $wishlistCookieToken = $user instanceof ShopUserInterface
48+
// ? $this->wishlistCookieTokenResolver->resolve()
49+
// : $this->wishlistCookieTokenResolver->new();
50+
51+
$wishlistCookieToken = $this->wishlistCookieTokenResolver->resolve();
5052

5153
if ($user instanceof ShopUserInterface) {
5254
/** @var WishlistInterface $wishlist */

0 commit comments

Comments
 (0)