From c711aa19dcddce4bae00bf33a318759b523926da Mon Sep 17 00:00:00 2001 From: janrembold Date: Tue, 23 Jan 2024 11:29:17 +0100 Subject: [PATCH] fix: updated review comments --- src/components/groupChat/CreateChatView.tsx | 16 ++++++---------- src/components/groupChat/GroupChatInfo.tsx | 11 ++++++----- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/components/groupChat/CreateChatView.tsx b/src/components/groupChat/CreateChatView.tsx index 2f90f53c1..09bd9dc67 100644 --- a/src/components/groupChat/CreateChatView.tsx +++ b/src/components/groupChat/CreateChatView.tsx @@ -264,7 +264,7 @@ export const CreateGroupChatView = (props) => { arePrefilledValuesChanged ]); - const handleEditGroupChatBackButton = () => { + const handleBackButton = () => { if (isEditGroupChatMode) { const pathInfo = (prevPathIsGroupChatInfo ? '/groupChatInfo' : '') + @@ -272,11 +272,7 @@ export const CreateGroupChatView = (props) => { history.push( `${listPath}/${activeSession.item.groupId}/${activeSession.item.id}${pathInfo}` ); - } - }; - - const handleCreateGroupChatBackButton = () => { - if (!isEditGroupChatMode) { + } else { history.push('/sessions/consultant/sessionView'); } }; @@ -552,7 +548,7 @@ export const CreateGroupChatView = (props) => {
@@ -569,7 +565,7 @@ export const CreateGroupChatView = (props) => {
@@ -672,7 +668,7 @@ export const CreateGroupChatView = (props) => { <>