mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Fix NoMethodError on nil accountable for logo color
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<%= render DS::FilledIcon.new(
|
<%= render DS::FilledIcon.new(
|
||||||
variant: :text,
|
variant: :text,
|
||||||
hex_color: color || account.accountable.color,
|
hex_color: color || account.accountable&.color,
|
||||||
text: account.name,
|
text: account.name,
|
||||||
size: size,
|
size: size,
|
||||||
rounded: true
|
rounded: true
|
||||||
|
|||||||
Reference in New Issue
Block a user