From 992093345d4b94aa9aa134ffdae363aa118557ff Mon Sep 17 00:00:00 2001 From: Sendou <38327916+Sendouc@users.noreply.github.com> Date: Wed, 27 May 2020 15:10:50 +0300 Subject: [PATCH] same ap values for every ability --- .../src/components/analyzer/StatChart.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/frontend-react/src/components/analyzer/StatChart.tsx b/frontend-react/src/components/analyzer/StatChart.tsx index b9ce34bdd..a65f0b46e 100644 --- a/frontend-react/src/components/analyzer/StatChart.tsx +++ b/frontend-react/src/components/analyzer/StatChart.tsx @@ -32,21 +32,8 @@ const StatChart: React.FC = ({ }) => { const { themeColorHex, darkerBgColor } = useContext(MyThemeContext) - const getData = () => { - const toReturn = [] - const LDEAbilities = ["ISM", "ISS", "REC"] - if (LDEAbilities.includes(ability)) { - for (let i = 0; i < 58; i++) { - toReturn.push({ name: `${i}AP`, [title]: getEffect(i) }) - } - } else { - possibleAps.forEach((ap) => { - toReturn.push({ name: `${ap}AP`, [title]: getEffect(ap) }) - }) - } - - return toReturn - } + const getData = () => + possibleAps.map((ap) => ({ name: `${ap}AP`, [title]: getEffect(ap) })) const CustomizedDot = (props: any) => { const { cx, cy, payload } = props