Skip to content

Commit

Permalink
Merge 78a907d into 5ce8307
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyagv committed Aug 2, 2023
2 parents 5ce8307 + 78a907d commit 1c16188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/student_teams_controller.rb
Expand Up @@ -112,7 +112,7 @@ def remove_participant
# if your old team does not have any members, delete the entry for the team
if TeamsUser.where(team_id: params[:team_id]).empty?
old_team = AssignmentTeam.find params[:team_id]
if old_team && !old_team.received_any_peer_review?
if (old_team && Team.size(params[:team_id]) == 0 && !old_team.received_any_peer_review?)
old_team.destroy
# if assignment has signup sheet then the topic selected by the team has to go back to the pool
# or to the first team in the waitlist
Expand Down

0 comments on commit 1c16188

Please sign in to comment.