Skip to content

Commit c4919b7

Browse files
committed
Take model solution usage time from first usage
1 parent 2cd51f5 commit c4919b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/submissions/_submission_details.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<% end %>
7171

7272
<% if can? :teach, @course %>
73-
<li>Model solution coin used: <%= @model_solution_token_used ? @model_solution_token_used.created_at : 'no' %></li>
73+
<li>Model solution coin used: <%= @model_solution_token_used.empty? ? 'no' : @model_solution_token_used.first.created_at %></li>
7474
<% end %>
7575
</ul>
7676

0 commit comments

Comments
 (0)