Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
fahadboss10 committed Nov 17, 2023
1 parent e5b8125 commit 2fa2811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ <h1 style="text-align:center; padding: 10px 0; font-family: 'Lato', sans-serif;
// Apply filter based on the URL parameter
const brandParam = new URLSearchParams(window.location.search).get('brand');
if (brandParam) {
const brand = Object.keys(BRAND_TO_ID).find(key => BRAND_TO_ID[key] == brandParam);
const brand = Object.keys(BRAND_TO_ID).find(key => key.toLowerCase() === brandParam.toLowerCase());
filterByBrand(brand);
}
});
Expand Down

0 comments on commit 2fa2811

Please sign in to comment.