{# "Surname, Name" when the profile has both, whichever it has otherwise, and the account's address for a profile not filled in yet (an account opened without asking for a name), so the menu never reads as a lone comma. #} {% set profile = current_user.profile %} {% set parts = [profile.surname, profile.name] | select | list if profile else [] %} {{ parts | join(', ') if parts else current_user.email }}