From 996fbc8f6b5c3e5452d82e789771a4e1d1489686 Mon Sep 17 00:00:00 2001 From: nsemets Date: Tue, 28 Oct 2025 10:39:49 +0200 Subject: [PATCH] fix(profile): removed employment and education from hero section --- .../mappers/preprint-moderation.mapper.ts | 8 ++--- .../profile-information.component.html | 36 ++----------------- 2 files changed, 7 insertions(+), 37 deletions(-) diff --git a/src/app/features/moderation/mappers/preprint-moderation.mapper.ts b/src/app/features/moderation/mappers/preprint-moderation.mapper.ts index cf4500f0b..799671e2d 100644 --- a/src/app/features/moderation/mappers/preprint-moderation.mapper.ts +++ b/src/app/features/moderation/mappers/preprint-moderation.mapper.ts @@ -72,10 +72,10 @@ export class PreprintModerationMapper { })), totalCount: response.meta.total, pageSize: response.meta.per_page, - pendingCount: response.meta.reviews_state_counts.pending, - acceptedCount: response.meta.reviews_state_counts.accepted, - rejectedCount: response.meta.reviews_state_counts.rejected, - withdrawnCount: response.meta.reviews_state_counts.withdrawn, + pendingCount: response.meta?.reviews_state_counts?.pending || 0, + acceptedCount: response.meta?.reviews_state_counts?.accepted || 0, + rejectedCount: response.meta?.reviews_state_counts?.rejected || 0, + withdrawnCount: response.meta?.reviews_state_counts?.withdrawn || 0, }; } diff --git a/src/app/features/profile/components/profile-information/profile-information.component.html b/src/app/features/profile/components/profile-information/profile-information.component.html index e21756c3f..e03ceb58f 100644 --- a/src/app/features/profile/components/profile-information/profile-information.component.html +++ b/src/app/features/profile/components/profile-information/profile-information.component.html @@ -8,18 +8,9 @@

{{ currentUser()?.fullName }}

-
- @if (currentUser()?.employment?.length) { -

- {{ currentUser()?.employment?.[0]?.title }}, - {{ currentUser()?.employment?.[0]?.institution }} -

- } - -

- {{ 'myProfile.memberSince' | translate }}: {{ currentUser()?.dateRegistered | date: 'MMM d, yyyy' }} -

-
+

+ {{ 'myProfile.memberSince' | translate }}: {{ currentUser()?.dateRegistered | date: 'MMM d, yyyy' }} +

@@ -38,27 +29,6 @@

{{ currentUser()?.fullName }}

- @if (isEmploymentAndEducationVisible()) { -
- @if (currentUser()?.education?.length) { -
- -

- {{ currentUser()?.education?.[0]?.institution }} -

-
- } - - @if (currentUser()?.employment?.length) { -
-

- {{ currentUser()?.employment?.[0]?.institution }} -

-
- } -
- } -
@for (social of userSocials(); track social.alt) {