diff --git a/src/containers/about-chat-sidebar/AboutChatSidebar.tsx b/src/containers/about-chat-sidebar/AboutChatSidebar.tsx index f3ae439edd..6af057a142 100644 --- a/src/containers/about-chat-sidebar/AboutChatSidebar.tsx +++ b/src/containers/about-chat-sidebar/AboutChatSidebar.tsx @@ -45,13 +45,10 @@ const AboutChatSidebar: FC = ({ const { _id, firstName, lastName, photo, professionalSummary } = user const { path: pathToProfile } = authRoutes.userProfile - const navigateToUserProfile = () => { + const navigateToUserProfile = () => navigate(createUrlPath(pathToProfile, _id, { role })) - } - const onSeeAllClick = (text: SidebarContentEnum) => { - setTitleText(text) - } + const onSeeAllClick = (text: SidebarContentEnum) => setTitleText(text) const goBackBtn = titleText !== About && ( setTitleText(About)} sx={styles.goBackBtn}>