Skip to content

Commit

Permalink
Merge pull request #71 from fs-jun24-team-3/hotfix/you-may-also-like-…
Browse files Browse the repository at this point in the history
…0001

Filter section `You may also like`
  • Loading branch information
k-marchuk authored Sep 25, 2024
2 parents 0c98479 + dc65d4c commit 7cfa244
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const RecommendedList = () => {

useEffect(() => {
getProducts().then(products => {
setCurrentProductList(products);
setCurrentProductList(
products.filter(product => !pathname.includes(product.id)),
);
});
}, []);

Expand Down

0 comments on commit 7cfa244

Please sign in to comment.