From 61528f7739190b0552ff640fe3abe1445c81cdea Mon Sep 17 00:00:00 2001 From: Mashy Date: Tue, 27 Aug 2019 16:35:48 +1000 Subject: [PATCH] ternary format --- client/src/components/team.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);