Skip to content

Commit

Permalink
Merge branch 'develop' into 15-send-reminder-emails-from-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
pavliuc75 committed Oct 30, 2024
2 parents 8759773 + 909d905 commit 222d4db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/Deployments/ParticipantRecord/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ParticipantRecord = ({
>
<AccountIcon>
<Initials variant="h4">
{participantData.firstName
{!participantData.firstName || !participantData.lastName
? participantRole[0]
: `${participantData.firstName[0]}${participantData.lastName[0]}`}
</Initials>
Expand All @@ -81,7 +81,7 @@ const ParticipantRecord = ({
{participantData.email ?? <GeneratedAccountLabel />}
</Typography>
<NameContainer>
{participantData.firstName && (
{participantData.firstName && participantData.lastName && (
<>
<PersonIcon fontSize="small" />
<Typography variant="h6">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Participant/ParticipantDataCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const ParticipantDataCard = () => {
}, [participantGroupStatus]);

const participantDataFromik = getParticipantDataFormik(
study?.protocolSnapshot.expectedParticipantData.toArray(),
participantData?.common.values.toArray().filter((v) => v),
study?.protocolSnapshot.expectedParticipantData ? study?.protocolSnapshot.expectedParticipantData.toArray() : [],
participantData?.common.values ? participantData?.common.values.toArray().filter((v) => v) : [],
setParticipantData,
participant?.role,
setEditing,
Expand Down

0 comments on commit 222d4db

Please sign in to comment.