mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
feat(FE-170): improve product name checks in RecordingForm for better matching
This commit is contained in:
@@ -335,9 +335,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
const productName = product.product.name;
|
const productName = product.product.name;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
productName === 'Ayam Mati' ||
|
productName.toLowerCase().includes('ayam') ||
|
||||||
productName === 'Ayam Culling' ||
|
productName.toLowerCase().includes('chicken') ||
|
||||||
productName === 'Ayam Afkir'
|
productName.toLowerCase().includes('culling') ||
|
||||||
|
productName.toLowerCase().includes('mati') ||
|
||||||
|
productName.toLowerCase().includes('afkir')
|
||||||
) {
|
) {
|
||||||
options.push({
|
options.push({
|
||||||
value: product.id,
|
value: product.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user