Skip to content

Commit

Permalink
fix the marget tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenya-DK committed Jan 4, 2024
1 parent 95a5d1b commit 32c770e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/warframeMarket/tabs/auctions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ export const AuctionsPanel = ({ }: AuctionsPanelProps) => {
})

const getAuctions = () => {
const aut = auctions.filter((x) => x.item.type.toLowerCase().includes("riven"));
if (query.length > 0)
return auctions.filter((x) => x.item.name.toLowerCase().includes(query.toLowerCase()) ||
return aut.filter((x) => x.item.name.toLowerCase().includes(query.toLowerCase()) ||
x.item.weapon_url_name.toLowerCase().includes(query.toLowerCase()));
return auctions;
return aut;
}
return (
<Box>
Expand Down

0 comments on commit 32c770e

Please sign in to comment.