Skip to content

Commit

Permalink
Adds condition to skip link to transaction form if it's not editable (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogaldamez authored Oct 31, 2024
1 parent e7f09e6 commit 7946cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/account/transactions/_transaction.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<div class="truncate text-gray-900">
<% if entry.new_record? %>
<% if entry.new_record? || !editable %>
<%= content_tag :p, entry.name %>
<% else %>
<%= link_to entry_name(entry),
Expand Down

0 comments on commit 7946cd7

Please sign in to comment.