feat(cart): refactor CartItem structure to remove nested product object and simplify access to properties
This commit is contained in:
@@ -254,7 +254,7 @@ export class CartComponent {
|
||||
|
||||
return {
|
||||
cartItemId: item.id,
|
||||
productName: item.product?.nombre ?? 'este producto',
|
||||
productName: item.nombre ?? 'este producto',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user