Skip to content

Commit

Permalink
fix(admin-ui): Fix case sensitivity in product variant filter
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 26, 2021
1 parent 6e794c0 commit 02f9995
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export class ProductDetailComponent
? variants.filter(v => {
const lcTerm = term.toLocaleLowerCase();
return (
v.name.toLocaleLowerCase().includes(term) ||
v.sku.toLocaleLowerCase().includes(term)
v.name.toLocaleLowerCase().includes(lcTerm) ||
v.sku.toLocaleLowerCase().includes(lcTerm)
);
})
: variants;
Expand Down

0 comments on commit 02f9995

Please sign in to comment.