mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-06 14:05:20 +02:00
Handle nil name for entries (#1550)
* Handle nil name for entries * Fix tests
This commit is contained in:
parent
9130089950
commit
45add7512b
10 changed files with 16 additions and 38 deletions
|
@ -18,9 +18,9 @@
|
|||
|
||||
<div class="truncate text-gray-900">
|
||||
<% if entry.new_record? %>
|
||||
<%= content_tag :p, entry.name %>
|
||||
<%= content_tag :p, entry.entryable.name %>
|
||||
<% else %>
|
||||
<%= link_to entry.name || t(".balance_update"),
|
||||
<%= link_to entry.entryable.name,
|
||||
account_entry_path(entry),
|
||||
data: { turbo_frame: "drawer", turbo_prefetch: false },
|
||||
class: "hover:underline hover:text-gray-800" %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue