new product select
This commit is contained in:
		@@ -38,7 +38,7 @@ const ProductSelect: FC<Props> = (props: Props) => {
 | 
			
		||||
        const filtered = (options as ComboboxItem[]).filter((option) => {
 | 
			
		||||
                const product = products.find(product => product.id == parseInt(option.value));
 | 
			
		||||
                if (!product) return true;
 | 
			
		||||
                return product.name.toLowerCase().includes(search) || product.barcodes.some((value) => value.toLowerCase().includes(search));
 | 
			
		||||
                return product.name.toLowerCase().includes(search.toLowerCase()) || product.barcodes.some((value) => value.toLowerCase().includes(search.toLowerCase()));
 | 
			
		||||
            }
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user