diff --git a/app/Domains/Cart/Services/CartService.php b/app/Domains/Cart/Services/CartService.php index 4e05395..52f63c6 100644 --- a/app/Domains/Cart/Services/CartService.php +++ b/app/Domains/Cart/Services/CartService.php @@ -14,13 +14,13 @@ class CartService { public function show(Tenant $tenant, Request $request): Cart { - $identity = $this->resolveIdentity($request); + $resolvedIdentity = $this->resolveIdentity($request); - if ($identity === null) { + if ($resolvedIdentity === null) { return $this->makeEmptyCart($tenant); } - $cart = $this->findCart($tenant, $identity); + $cart = $this->findCart($tenant, $resolvedIdentity['identity']); if ($cart === null) { return $this->makeEmptyCart($tenant);