diff --git a/src/components/Avatar/index.jsx b/src/components/Avatar/index.jsx index c875caf..6903d48 100644 --- a/src/components/Avatar/index.jsx +++ b/src/components/Avatar/index.jsx @@ -12,8 +12,8 @@ const Avatar = ({ profile }) => ( User avatar ) : ( - {profile.firstName.charAt(0)} - {profile.lastName.charAt(0)} + {profile.firstName?.charAt(0)} + {profile.lastName?.charAt(0)} )}