feat(FE-170): improve product name checks in RecordingForm for better matching

This commit is contained in:
rstubryan
2025-11-05 16:43:18 +07:00
parent 333212a1de
commit be98655c75
@@ -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,