From 7335488f8f580eb94e1059028f4c4ab4010f2848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deborah=20K=C3=B6pfer?= Date: Wed, 15 Dec 2021 11:42:10 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20error=20on=20isFeedbackSe?= =?UTF-8?q?ssion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/message/MessageItemComponent.tsx | 4 ++-- src/components/message/MessageMetaData.tsx | 2 +- .../messageSubmitInterfaceComponent.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/message/MessageItemComponent.tsx b/src/components/message/MessageItemComponent.tsx index 1c78cb20e..147d32f33 100644 --- a/src/components/message/MessageItemComponent.tsx +++ b/src/components/message/MessageItemComponent.tsx @@ -179,7 +179,7 @@ export const MessageItemComponent = ({ activeSession.type !== SESSION_LIST_TYPES.ENQUIRY && chatItem.feedbackGroupId && hasUserAuthority(AUTHORITIES.USE_FEEDBACK, userData) && - !activeSession.isFeedbackSession; + !activeSession?.isFeedbackSession; const videoCallMessage: VideoCallMessageDTO = alias?.videoCallMessageDTO; const isFurtherStepsMessage = @@ -264,7 +264,7 @@ export const MessageItemComponent = ({ hasRenderedMessage={hasRenderedMessage} /> ))} - {activeSession.isFeedbackSession && ( + {activeSession?.isFeedbackSession && ( { if ( hasUserAuthority(AUTHORITIES.ASKER_DEFAULT, userData) || hasUserAuthority(AUTHORITIES.ANONYMOUS_DEFAULT, userData) || - activeSession.isFeedbackSession || + activeSession?.isFeedbackSession || props.isReadStatusDisabled ) { return null; diff --git a/src/components/messageSubmitInterface/messageSubmitInterfaceComponent.tsx b/src/components/messageSubmitInterface/messageSubmitInterfaceComponent.tsx index d0b0bf799..392d51ab4 100644 --- a/src/components/messageSubmitInterface/messageSubmitInterfaceComponent.tsx +++ b/src/components/messageSubmitInterface/messageSubmitInterfaceComponent.tsx @@ -713,7 +713,7 @@ export const MessageSubmitInterfaceComponent = ( hasUserAuthority(AUTHORITIES.USE_FEEDBACK, userData) && !hasUserAuthority(AUTHORITIES.VIEW_ALL_PEER_SESSIONS, userData) && activeSession.session.feedbackGroupId && - !activeSession.isFeedbackSession; + !activeSession?.isFeedbackSession; return (