mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 19:44:09 +00:00
fix: Ensure category exists when displaying the name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<span id="category_name_mobile_<%= transaction.id %>" class="text-secondary lg:hidden">
|
||||
<% if transaction.transfer&.categorizable? || transaction.transfer.nil? %>
|
||||
<%= transaction.category.name %>
|
||||
<%= transaction.category&.name %>
|
||||
<% else %>
|
||||
<%= transaction.transfer&.payment? ? payment_category.name : transfer_category.name %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user