Skip to content

Commit

Permalink
Merge pull request #507 from battlecode/disable-filtering-for-now
Browse files Browse the repository at this point in the history
Disable filtering for now
  • Loading branch information
n8kim1 authored Jan 9, 2023
2 parents f360bf0 + 331040c commit 42f03c3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions frontend/src/components/rankingTeamList.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ class RankingTeamList extends Component {
</div>
);
} else {
const teamsToShow = props.teams.filter((team) => {
return team.has_active_submission || !this.props.canRequest;
});
// const teamsToShow = props.teams.filter((team) => {
// return team.has_active_submission || !this.props.canRequest;
// });

// Note: this will look odd when this.props.canRequest is false. Doesn't matter for now...but test during a simulated freeze and fix before freeze.
const teamsToShow = props.teams;
const teamRows = teamsToShow.map((team) => {
let buttonContent = "Request";
if (state.pendingRequests[team.id]) {
Expand Down Expand Up @@ -166,6 +169,11 @@ class RankingTeamList extends Component {
<div className="header">
<h4 className="title">{this.props.title}</h4>
</div>
<div className="content">
Teams that do not have already submitted code will not have
"request" buttons appear. Click around the pagination to find
them. (Enhanced filtering will be coming very soon!)
</div>
{this.props.canRequest && this.props.episode_info.frozen && (
<div className="content">
Scrimmages may not be requested, due to a submission freeze for
Expand Down

0 comments on commit 42f03c3

Please sign in to comment.