diff --git a/frontend/application/lib/services/productService.ts b/frontend/application/lib/services/productService.ts index 5311b20..7e59efd 100644 --- a/frontend/application/lib/services/productService.ts +++ b/frontend/application/lib/services/productService.ts @@ -34,7 +34,7 @@ export class ProductService { shortDescription: data.shortDescription, price: data.priceDisplay || `${data.priceValue.toLocaleString('fa-IR')} تومان`, priceValue: Number(data.priceValue), - category: data.category, + category: data.category?.name || data.category || data.categorySlug || '', categorySlug: data.categorySlug, unit: data.unit, packageSize: data.packageSize,