Skip to content

Commit

Permalink
fix: change group size criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
ppapman1 committed Jan 1, 2024
1 parent cf99042 commit 8d3f610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/awc2024/AWCQ1RankingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,18 +406,18 @@ const AWCQ1RankingPage = () => {

const fetchData = async () => {
try {
const sizeRes = await axios.get(`${API_BASE_URL}measure/rank/`);
const groupARes = await axios.get(
`${API_BASE_URL}measure/rank/a?limit=200`
);
const groupBRes = await axios.get(
`${API_BASE_URL}measure/rank/b?limit=200`
);

setGroupASize(sizeRes.data.data.groupA);
setGroupBSize(sizeRes.data.data.groupB);
setGroupAData(groupARes.data.data);
setGroupBData(groupBRes.data.data);

setGroupASize(groupARes.data.data.length);
setGroupBSize(groupBRes.data.data.length);
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit 8d3f610

Please sign in to comment.