Skip to content

Commit

Permalink
fix: 🚑️ only filter dyeworks and their originals from similar items
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca180 committed Feb 7, 2025
1 parent e68048d commit a6771bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/v1/items/[id_name]/similar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getSimilarItems = async (item: ItemData, limit = 4) => {
!(
i.name.toLowerCase().includes(notDyeworksName.toLowerCase()) &&
i.name.toLowerCase().includes('dyeworks')
) && i.name !== notDyeworksName
) && (item.name !== notDyeworksName ? i.name !== notDyeworksName : true)
);

const sortedItems = allItems.sort(
Expand Down

0 comments on commit a6771bc

Please sign in to comment.