From bd093aed6f315ba6dddef391e80628c7364c55e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Fri, 3 Oct 2025 19:14:45 -0300 Subject: [PATCH] fix: read data from state instead of idpProfile to avoid missing data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- src/templates/full-profile-page.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/templates/full-profile-page.js b/src/templates/full-profile-page.js index 30ea7e66..e2f7ae6c 100644 --- a/src/templates/full-profile-page.js +++ b/src/templates/full-profile-page.js @@ -215,7 +215,7 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up const apiBaseUrl = getEnvVariable(SUMMIT_API_BASE_URL); const url = `${apiBaseUrl}/api/v1/summits/${summit.id}/orders/all/tickets/me?${params}`; - + const response = await fetch(url); if (response.ok) { @@ -310,11 +310,14 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up

- Hello,
- {user.idpProfile.given_name} {user.idpProfile.family_name} + Hello
+ {personalProfile.firstName || personalProfile.lastName ? + `, ${personalProfile.firstName} ${personalProfile.lastName}` + : "" + }

- @{user.idpProfile?.nickname} + @{personalProfile?.identifier}

{showCertificateDownload && ( @@ -498,7 +501,7 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up
- By electing to show your information you are indicating that other attendees at the + By electing to show your information you are indicating that other attendees at the event(s) you are registered for will be able to see this information.
@@ -697,13 +700,13 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up
{showProfile && - handleTogglePopup(false)} - /> + handleTogglePopup(false)} + /> }