Skip to content

Commit

Permalink
UI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierLora committed Mar 31, 2024
1 parent 2672143 commit 2302f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stats/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ const generateTeamPlayerRows = (playerList) => {
// Get the first array from playerData to iterate over
var playerRows = '';

const maxPlayersToShow = Math.min(playerList.length, 10);

for (let i = 0; i < playerList.length; i++) {
for (let i = 0; i < maxPlayersToShow; i++) {
const obj = playerList[i];
if (!obj || typeof obj.players === 'undefined' || typeof obj.players.headshot === 'undefined') {
continue; // Skip this iteration and move to the next one
Expand Down

0 comments on commit 2302f3b

Please sign in to comment.