diff --git a/src/components/left/settings/SettingsMain.tsx b/src/components/left/settings/SettingsMain.tsx index 5740e743..63b1bda5 100644 --- a/src/components/left/settings/SettingsMain.tsx +++ b/src/components/left/settings/SettingsMain.tsx @@ -7,6 +7,7 @@ import { ApiUser } from '../../../api/types'; import { selectUser } from '../../../modules/selectors'; import { getUserFullName } from '../../../modules/helpers'; import { formatPhoneNumberWithCode } from '../../../util/phoneNumber'; +import renderText from '../../common/helpers/renderText'; import useLang from '../../../hooks/useLang'; import useHistoryBack from '../../../hooks/useHistoryBack'; @@ -30,6 +31,7 @@ const SettingsMain: FC = ({ currentUser, }) => { const lang = useLang(); + const fullName = getUserFullName(currentUser); useHistoryBack(isActive, onReset, onScreenSelect, SettingsScreens.Main); @@ -39,7 +41,7 @@ const SettingsMain: FC = ({ {currentUser && (
-

{getUserFullName(currentUser)}

+

{fullName && renderText(fullName)}

{formatPhoneNumberWithCode(currentUser.phoneNumber)}

)}