Skip to content

Commit

Permalink
Hide gametypes with no data
Browse files Browse the repository at this point in the history
  • Loading branch information
scottadkin committed Aug 24, 2023
1 parent 0b2cb66 commit 40f93b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/rankings/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class Rankings extends React.Component{
for(let i = 0; i < data.length; i++){

const d = data[i];

if(d.data.length === 0) continue;

elems.push(<RankingTable host={Functions.getImageHostAndPort(this.props.host)} gametypeId={d.id} page={this.props.page-1} perPage={this.props.perPage}
key={i} mode={this.props.gametypeId}
Expand Down

0 comments on commit 40f93b9

Please sign in to comment.