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:
parent
9130089950
commit
45add7512b
10 changed files with 16 additions and 38 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue