diff --git a/react/features/filmstrip/components/web/StatusIndicators.js b/react/features/filmstrip/components/web/StatusIndicators.js index 82a0a3ada..274a25e16 100644 --- a/react/features/filmstrip/components/web/StatusIndicators.js +++ b/react/features/filmstrip/components/web/StatusIndicators.js @@ -124,7 +124,7 @@ function _mapStateToProps(state, ownProps) { } else if (!participant?.isFakeParticipant) { // remote participants excluding shared video const track = getTrackByMediaTypeAndParticipant(tracks, MEDIA_TYPE.VIDEO, participantID); - isScreenSharing = typeof track !== 'undefined' && track.videoType === 'desktop'; + isScreenSharing = track?.videoType === 'desktop'; isVideoMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.VIDEO, participantID); isAudioMuted = isRemoteTrackMuted(tracks, MEDIA_TYPE.AUDIO, participantID); }