From eeb7c9924479c2c7205cdc2f8d09b0df00b9f42d Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 7 Oct 2021 14:16:54 +0200
Subject: [PATCH] person-profile: stop using person.name

---
 packages/person-profile/src/person-profile.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/person-profile/src/person-profile.js b/packages/person-profile/src/person-profile.js
index 46b0455a..c78a0b9b 100644
--- a/packages/person-profile/src/person-profile.js
+++ b/packages/person-profile/src/person-profile.js
@@ -89,7 +89,7 @@ export class PersonProfile extends DBPLitElement {
             }
             </style>
 
-            ${this.person !== null && this.person.name !== '' ? html`<h3>${i18n.t('person-profile.profile-caption')} ${this.person.name}</h3>
+            ${this.person !== null ? html`<h3>${i18n.t('person-profile.profile-caption')} ${this.person.givenName} ${this.person.familyName}</h3>
             <table class="profile">
             <thead></thead>
             <tbody>
-- 
GitLab