feat: add header component with navigation and cart functionality
This commit is contained in:
@@ -20,6 +20,8 @@ export class CartService {
|
||||
const response = await firstValueFrom(
|
||||
this.http.post<AddCartResponse>(`${API_BASE_URL}/cart`, request)
|
||||
);
|
||||
|
||||
//Note: can return always 1 because server has not SameSite=None. This will be taken as a third cookie, and the browser can ignore it.
|
||||
this.setCount(response.count);
|
||||
return response.count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user