Skip to content

Commit

Permalink
Fixed crash when sent without date
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed May 31, 2014
1 parent ac23eb7 commit b8baae4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/projects/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@
%li.distribution-link
- label = btc_human(distribution.total_amount)
- if distribution.sent?
- label << " sent #{time_ago_in_words(distribution.sent_at)} ago"
- if distribution.sent_at
- label << " sent #{time_ago_in_words(distribution.sent_at)} ago"
- else
- label << " sent"
- else
- label << " not sent"
= link_to label, [@project, distribution]
Expand Down

0 comments on commit b8baae4

Please sign in to comment.