Skip to content

Commit

Permalink
Remove unneeded ternary (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncole committed Oct 18, 2022
1 parent 052a8bb commit 4306d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/works/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<div>
<% if @work.draft? || @work.awaiting_approval? || current_user.has_role?(:collection_admin, @work.collection) %>
<%= link_to("Edit", edit_work_path(@work, wizard: @work.draft? ? true : nil), class: "btn btn-primary") %>
<%= link_to("Edit", edit_work_path(@work, wizard: @work.draft?), class: "btn btn-primary") %>
<% end %>
<% if @work.awaiting_approval? && current_user.has_role?(:collection_admin, @work.collection) %>
<%= button_to("Approve Dataset", approve_work_path(@work), class: "btn btn-secondary", method: :post) %>
Expand Down

0 comments on commit 4306d6b

Please sign in to comment.