Minor bug when a user doesn't have any rates yet

This commit is contained in:
Eric Davis
2009-01-20 17:11:27 -08:00
parent 363e8c0c5a
commit 82e480b77b

View File

@@ -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 %>