Skip to content

Commit

Permalink
Fix issue with showing project which has a stash usage with no YarnPr…
Browse files Browse the repository at this point in the history
…oduct

For example, handmade yarns
  • Loading branch information
heatherathebyne committed Jan 23, 2024
1 parent 6cfe414 commit 64ad6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<% if user_signed_in? && @project.user == current_user %>
<%= link_to yarn_title, usage.stash_yarn, class: 'fw-normal btn btn-outline-primary mb-1' %>
<% else %>
<%= link_to yarn_title, yarn_product_path(usage.stash_yarn.yarn_product_id), class: 'fw-normal btn btn-outline-primary mb-1' %>
<span class='fw-normal btn btn-outline-primary mb-1'><%= yarn_title %></span>
<% end %>
<% end %>
<% if @project.user == current_user %>
Expand Down

0 comments on commit 64ad6cc

Please sign in to comment.