diff --git a/app/views/competitions/competitions/charts.json.jbuilder b/app/views/competitions/competitions/charts.json.jbuilder index f59f377f7..e0d501fbd 100644 --- a/app/views/competitions/competitions/charts.json.jbuilder +++ b/app/views/competitions/competitions/charts.json.jbuilder @@ -1,7 +1,7 @@ json.user_ranks @user_ranks.each do |user_rank| rank = @records.map(&:id).index(user_rank.id) rank = rank.present? ? (rank+1) : 0 - json.rank rank == 0 ? "--" : user_rank.rank + json.rank rank == 0 ? "--" : rank json.team_name user_rank.name json.user_name user_rank.user.real_name json.cost_time rank == 0 && user_rank.cost_time ? "--" : com_spend_time(user_rank.cost_time)