diff --git a/src/components/Employee/EmpBanner.jsx b/src/components/Employee/EmpBanner.jsx index 756a7c56..7b022d09 100644 --- a/src/components/Employee/EmpBanner.jsx +++ b/src/components/Employee/EmpBanner.jsx @@ -44,7 +44,19 @@ const EmpBanner = ({ profile, loggedInUser }) => {
-

{`${profile?.firstName} ${profile?.middleName} ${profile?.lastName}`}

+

+ {profile?.firstName} + {profile?.middleName ? ( + {profile?.middleName} + ) : ( + <> + )} + {profile?.lastName ? ( + {profile?.lastName} + ) : ( + <> + )} +