Skip to content

Commit

Permalink
fix scrimmage page display error
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravbajaj012 committed Jan 28, 2024
1 parent 3015ef5 commit 7c830d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/user/scrimmages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
await axios
.get(`${process.env.MATCHMAKING_SERVER_IP}/maps/list?pool=unranked`)
.then((response: AxiosResponse) => {
if (response.status === 200) maps = response.data.pools[0].mapIds;
if (response.status === 200 && response.data.pools && response.data.pools.length > 0) maps = response.data.pools[0].mapIds;
});

return {
Expand Down

0 comments on commit 7c830d0

Please sign in to comment.