fix: case-insensitive stop word matching

This commit is contained in:
root 2026-05-28 19:55:57 +00:00
parent dda8f8fe1f
commit 3c22eb71ab
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ const flattenOrderProducts = (rawItems) => {
const matchesStopWord = (name, stopWords) => { const matchesStopWord = (name, stopWords) => {
if (!stopWords || !stopWords.length) return false; if (!stopWords || !stopWords.length) return false;
const lower = name.toLowerCase(); const lower = name.toLowerCase();
return stopWords.some((sw) => lower.includes(sw)); return stopWords.some((sw) => lower.includes(sw.toLowerCase()));
}; };
export const OrderCompositionPanel = ({ invitation = {} }) => { export const OrderCompositionPanel = ({ invitation = {} }) => {