chore: fix prices

This commit is contained in:
2026-03-02 03:28:45 +01:00
parent e7a6dc2230
commit 6c8af9acd4
10 changed files with 266 additions and 41 deletions
+1
View File
@@ -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;
+1
View File
@@ -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),