Skip to content

Commit

Permalink
chore: temp change for filter invalid ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdgustn committed Dec 21, 2022
1 parent f4398a4 commit de8e4f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/awc2023/AWCRankingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components';
import axios from 'axios';
import { useLocation } from 'react-router-dom';

const apiEndpoint = 'https://api.awc.enak.kr/measure/rank';
const apiEndpoint = 'https://cors-anywhere.herokuapp.com/https://api.awc.enak.kr/measure/rank';

const RankingItemBox = styled.div`
display: flex;
Expand Down Expand Up @@ -207,12 +207,12 @@ const AWCRankingPage = () => {

// 랭킹 테러 대응을 위한 임시 변경사항
dispatch({ type: 'FETCH_RESULT', items: response.data.data.filter(a =>
!a.isTimingScaleChanged)
!a.isTimingScaleChanged
&& !a.playerName.includes('⛧')
&& !a.playerName.includes('⚝')
&& !/.*#\d{4}$/g.test(a.discordUsername)
&& /.*#\d{4}$/g.test(a.discordUsername)
&& !a.hitMargins[3] <= 1657
});
)});
} catch (e) {
dispatch({ type: 'FETCH_ERROR', error: e });
}
Expand Down

0 comments on commit de8e4f6

Please sign in to comment.