diff --git a/client/src/components/team.jsx b/client/src/components/team.jsx index 9fbb3cff..cb88b526 100644 --- a/client/src/components/team.jsx +++ b/client/src/components/team.jsx @@ -57,7 +57,9 @@ function Team(args) { return setTeam(teamSelect); } console.log(constructs.length); - const dispConstructs = constructs.length >= ((teamPage + 1) * 6) ? constructs.slice(teamPage * 6, (teamPage + 1) * 6) : constructs.slice(teamPage * 6, constructs.length); + const dispConstructs = constructs.length >= ((teamPage + 1) * 6) + ? constructs.slice(teamPage * 6, (teamPage + 1) * 6) + : constructs.slice(teamPage * 6, constructs.length); const constructPanels = dispConstructs.map(construct => { const colour = teamSelect.indexOf(construct.id);