Minor bug when a user doesn't have any rates yet
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
<td id="rate_<%= membership.project.id %>">
|
||||
<% rate = Rate.for(@user, membership.project) %>
|
||||
|
||||
<% if rate.default? || rate.nil? %>
|
||||
<% if rate.default? %>
|
||||
<% if rate.nil? || rate.default? %>
|
||||
<% if rate && rate.default? %>
|
||||
<em><%= number_to_currency(rate.amount) %></em>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user