Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions src/templates/full-profile-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -310,11 +310,14 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up
</div>
</button>
<h3>
Hello, <br />
{user.idpProfile.given_name} {user.idpProfile.family_name}
Hello <br />
{personalProfile.firstName || personalProfile.lastName ?
`, ${personalProfile.firstName} ${personalProfile.lastName}`
: ""
}
</h3>
<h4>
@{user.idpProfile?.nickname}
@{personalProfile?.identifier}
</h4>
{showCertificateDownload && (
<CertificateDownloadButton freshTickets={freshTickets} />
Expand Down Expand Up @@ -498,7 +501,7 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up
<div className={`columns is-mobile`}>
<div className={`column is-full`}>
<span>
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.
</span>
</div>
Expand Down Expand Up @@ -697,13 +700,13 @@ export const FullProfilePageTemplate = ({ user, getIDPProfile, updateProfile, up
</div>
</div>
{showProfile &&
<AvatarEditorModal
userProfile={user.idpProfile}
open={showProfile}
idpLoading={user.loadingIDP}
changePicture={handlePictureUpdate}
handleClose={() => handleTogglePopup(false)}
/>
<AvatarEditorModal
userProfile={user.idpProfile}
open={showProfile}
idpLoading={user.loadingIDP}
changePicture={handlePictureUpdate}
handleClose={() => handleTogglePopup(false)}
/>
}
<AccessTracker updateChatProfileEnabled={true} />
</React.Fragment>
Expand Down