Closed ricnava00 closed 1 year ago
else if(!(this.state.playerteam.teamMembers.find(elem=>elem.username=== sessionStorage.getItem("username") && elem.role==="LEADER"))){ formtodisplay =
you are not the leader of your team. Please ask the leader to join this tournament
}in iframe branch there is this check
Ok sorry, then I was probably testing on the dev branch
The tournament joining is allowed only to the creator of the team, while instead it should be allowed only to the team leader (property of the player). I haven't checked if this happens in other instances