Skip to content

Commit

Permalink
Merge pull request #300 from CaritasDeutschland/hotfix-activeSessionS…
Browse files Browse the repository at this point in the history
…ession-2

fix: elk stack log error fixed
  • Loading branch information
mebo4b authored Dec 17, 2021
2 parents 2a998b5 + c245c0f commit ec811ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/message/MessageItemComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const MessageItemComponent = ({
(chatItem?.moderators && !chatItem?.moderators?.includes(userId));
const showForwardMessage = () =>
hasRenderedMessage &&
activeSession.type !== SESSION_LIST_TYPES.ENQUIRY &&
activeSession?.type !== SESSION_LIST_TYPES.ENQUIRY &&
chatItem?.feedbackGroupId &&
hasUserAuthority(AUTHORITIES.USE_FEEDBACK, userData) &&
!activeSession?.isFeedbackSession;
Expand Down
2 changes: 1 addition & 1 deletion src/components/message/MessageUsername.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const MessageUsername = (props: MessageUsernameProps) => {
<>
{!props.alias &&
props.username &&
chatItem.type !== SESSION_LIST_TYPES.ENQUIRY ? (
chatItem?.type !== SESSION_LIST_TYPES.ENQUIRY ? (
<div
className={`messageItem__username messageItem__username--${props.type}`}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sessionHeader/SessionHeaderComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const SessionHeaderComponent = (props: SessionHeaderProps) => {
let activeSession = getActiveSession(activeSessionGroupId, sessionsData);
const isLiveChat = isAnonymousSession(activeSession?.session);
const chatItem = getChatItemForSession(activeSession);
const consultingType = useConsultingType(chatItem.consultingType);
const consultingType = useConsultingType(chatItem?.consultingType);

const username = getContact(activeSession).username;
const userSessionData = getContact(activeSession).sessionData;
Expand Down

0 comments on commit ec811ee

Please sign in to comment.