1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 13:35:21 +02:00

Handle nil name for entries (#1550)

* Handle nil name for entries

* Fix tests
This commit is contained in:
Zach Gollwitzer 2024-12-16 12:52:11 -05:00 committed by GitHub
parent 9130089950
commit 45add7512b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 16 additions and 38 deletions

View file

@ -9,5 +9,5 @@
<%= tag.div style: mixed_hex_styles(hex),
class: [size_classes[size], "flex shrink-0 items-center justify-center rounded-full"] do %>
<%= tag.span name[0].upcase, class: ["font-medium", size == "sm" ? "text-xs" : "text-sm"] %>
<%= tag.span (name.presence&.first || "T").upcase, class: ["font-medium", size == "sm" ? "text-xs" : "text-sm"] %>
<% end %>