Permalink
Browse files

only show favorite stamps that exist

  • Loading branch information...
1 parent ae21570 commit 6b12584acd09f92429df129aeb207c88a0ddb42c @ryanb committed Jan 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/favorites/index.html.erb
@@ -8,7 +8,7 @@
</p>
<% else %>
<% for favorite in @favorites %>
- <% unless favorite.stamp.private? %>
+ <% if favorite.stamp && !favorite.stamp.private? %>
<div class="stamp">
<div class="score">
<div class="score_bar" style="background-position: <%= -200 + (favorite.stamp.goal_progress*2) %>px 0">score <%=h favorite.stamp.score %></div>

0 comments on commit 6b12584

Please sign in to comment.