From be98655c7511a64df084f4ec1cf3a740d6443b90 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Wed, 5 Nov 2025 16:43:18 +0700 Subject: [PATCH] feat(FE-170): improve product name checks in RecordingForm for better matching --- .../pages/production/recording/form/RecordingForm.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index 9bf2bfbe..e065ec96 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -335,9 +335,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { const productName = product.product.name; if ( - productName === 'Ayam Mati' || - productName === 'Ayam Culling' || - productName === 'Ayam Afkir' + productName.toLowerCase().includes('ayam') || + productName.toLowerCase().includes('chicken') || + productName.toLowerCase().includes('culling') || + productName.toLowerCase().includes('mati') || + productName.toLowerCase().includes('afkir') ) { options.push({ value: product.id,