Skip to content

Commit

Permalink
Check #email_address for sidebar name (#3340)
Browse files Browse the repository at this point in the history
  • Loading branch information
tumes authored Oct 15, 2024
1 parent c0d852d commit bbd3c43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/avo/sidebar_profile_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def name
@user.name
elsif @user.respond_to?(:email) && @user.email.present?
@user.email
elsif @user.respond_to?(:email_address) && @user.email_address.present?
@user.email_address
else
"Avo user"
end
Expand Down

0 comments on commit bbd3c43

Please sign in to comment.