chore: fix prices
This commit is contained in:
@@ -169,6 +169,7 @@ export const getCart = async (username: string) => {
|
||||
|
||||
export const addToCart = async (cartItem: {
|
||||
username?: string;
|
||||
product_id?: number;
|
||||
name_product: string;
|
||||
category: string;
|
||||
quantity: number;
|
||||
|
||||
@@ -122,6 +122,7 @@ export function CartProvider({ children }: { children: ReactNode }) {
|
||||
try {
|
||||
const response = await apiAddToCart({
|
||||
username,
|
||||
product_id: item.product_id,
|
||||
name_product: cleanName,
|
||||
category: (item.category || "autre").toLowerCase().trim(),
|
||||
quantity: Number(item.quantity),
|
||||
|
||||
Reference in New Issue
Block a user