shivamsouravjha / stock-frontend

https://www.stocksight.online/
9 stars 19 forks source link

remove duplicate stock by applying filter on ISIN #39

Closed bhavy3103 closed 1 month ago

bhavy3103 commented 1 month ago

apply filter on ISIN number to remove duplicate stocks in same mutual funds like this way in homepage.jsx file

// add filter on ISIN to remove duplicate stock setStockDetails((prevDetails) => { const uniqueStocks = [...prevDetails, stockDetail].filter( (stock, index, self) => index === self.findIndex((s) => s.ISIN === stock.ISIN) ) return uniqueStocks })

vercel[bot] commented 1 month ago

@bhavy3103 is attempting to deploy a commit to the shivamsouravjha's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stock-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 7:16am