From 1ff65a4ab521852cba46c6115a0aaba7c2b5f247 Mon Sep 17 00:00:00 2001 From: Lucca Date: Sun, 29 Oct 2023 16:46:06 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20trade=20price=20process?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Card/CardBase.tsx | 1 + components/Items/ItemDrops.tsx | 6 +++--- pages/api/v1/prices/process.ts | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/Card/CardBase.tsx b/components/Card/CardBase.tsx index 287e1760..d6331636 100644 --- a/components/Card/CardBase.tsx +++ b/components/Card/CardBase.tsx @@ -31,6 +31,7 @@ const CardBase = (props: Props) => { p={2} textAlign="center" fontWeight="bold" + as={'h3'} bg={`rgba(${color[0]}, ${color[1]}, ${color[2]}, .6)`} > {props.title} diff --git a/components/Items/ItemDrops.tsx b/components/Items/ItemDrops.tsx index b31c22cf..2766149d 100644 --- a/components/Items/ItemDrops.tsx +++ b/components/Items/ItemDrops.tsx @@ -44,7 +44,7 @@ const ItemDrops = (props: Props) => { if (isLoading) return ( - + {Object.values(itemDrops).map((item) => ( @@ -54,7 +54,7 @@ const ItemDrops = (props: Props) => { ); return ( - + {itemOpenable.isGBC && ( @@ -193,7 +193,7 @@ const ItemDrops = (props: Props) => { {!isChoice && !!itemOpenable.openings && ( - Data on {itemOpenable.openings} opening reports.{' '} + {item.name} drop odds on {itemOpenable.openings} opening reports.{' '} Learn How To Help diff --git a/pages/api/v1/prices/process.ts b/pages/api/v1/prices/process.ts index 0a6f2218..8825ac9e 100644 --- a/pages/api/v1/prices/process.ts +++ b/pages/api/v1/prices/process.ts @@ -147,7 +147,8 @@ const POST = async (req: NextApiRequest, res: NextApiResponse) => { // list of unique entries const uniqueNames = [...processList].filter( - (value, index, self) => index === self.findIndex((t) => genItemKey(t) === genItemKey(value)) + (value, index, self) => + index === self.findIndex((t) => genItemKey(t, true) === genItemKey(value, true)) ); for (const item of uniqueNames) {