fix: case-insensitive stop word matching
This commit is contained in:
parent
dda8f8fe1f
commit
3c22eb71ab
|
|
@ -63,7 +63,7 @@ const flattenOrderProducts = (rawItems) => {
|
|||
const matchesStopWord = (name, stopWords) => {
|
||||
if (!stopWords || !stopWords.length) return false;
|
||||
const lower = name.toLowerCase();
|
||||
return stopWords.some((sw) => lower.includes(sw));
|
||||
return stopWords.some((sw) => lower.includes(sw.toLowerCase()));
|
||||
};
|
||||
|
||||
export const OrderCompositionPanel = ({ invitation = {} }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue