From f4398a44a968f3659f8b38f1277ff5d8111a3c9f Mon Sep 17 00:00:00 2001 From: HYONSU Date: Thu, 22 Dec 2022 04:35:16 +0900 Subject: [PATCH] chore: temp change for filter invalid ranking --- src/routes/awc2023/AWCRankingPage.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/routes/awc2023/AWCRankingPage.jsx b/src/routes/awc2023/AWCRankingPage.jsx index 0bb148c9..928180d2 100644 --- a/src/routes/awc2023/AWCRankingPage.jsx +++ b/src/routes/awc2023/AWCRankingPage.jsx @@ -205,7 +205,14 @@ const AWCRankingPage = () => { } }); - dispatch({ type: 'FETCH_RESULT', items: response.data.data }); + // 랭킹 테러 대응을 위한 임시 변경사항 + dispatch({ type: 'FETCH_RESULT', items: response.data.data.filter(a => + !a.isTimingScaleChanged) + && !a.playerName.includes('⛧') + && !a.playerName.includes('⚝') + && !/.*#\d{4}$/g.test(a.discordUsername) + && !a.hitMargins[3] <= 1657 + }); } catch (e) { dispatch({ type: 'FETCH_ERROR', error: e }); }