From 7bc4ca137e02f84726532a6a07d9da7b5729accc Mon Sep 17 00:00:00 2001 From: parsa aghaei
diff --git a/frontend/application/lib/services/productService.ts b/frontend/application/lib/services/productService.ts index aa2f3d39..2ffbd7aa 100644 --- a/frontend/application/lib/services/productService.ts +++ b/frontend/application/lib/services/productService.ts @@ -45,7 +45,7 @@ export class ProductService { name: data.name, scientificTagline: data.scientificTagline, description: data.description, - shortDescription: data.shortDescription, + shortDescription: data.shortDescription || (data.description ? (data.description.split(/[.।]/)[0].trim() + '.') : ''), price: data.priceDisplay || `${data.priceValue.toLocaleString('fa-IR')} تومان`, priceValue: Number(data.priceValue), category: data.category?.name || data.category || CATEGORY_SLUG_TO_NAME[data.categorySlug] || data.categorySlug || '',