Skip to content

Commit 1bc239f

Browse files
committed
fix: undefined error in profile picture component
1 parent 80720e7 commit 1bc239f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/shared/lib/components/profile-picture/ProfilePicture.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const ProfilePicture: FC<ProfilePictureProps> = props => {
2929
>
3030
{!loaded && (
3131
<span className={styles.profileInitials}>
32-
{props.member.firstName.slice(0, 1)}
33-
{props.member.lastName.slice(0, 1)}
32+
{props.member?.firstName?.slice(0, 1)}
33+
{props.member?.lastName?.slice(0, 1)}
3434
</span>
3535
)}
3636
{props.member.photoURL && !error && (

0 commit comments

Comments
 (0)