[RN] Fix undefined.avatarID in ParticipantView

This commit is contained in:
Lyubo Marinov 2017-03-08 17:05:55 -06:00
parent d74e43ddcc
commit e6f906b9ca
1 changed files with 5 additions and 5 deletions

View File

@ -163,13 +163,13 @@ function _toBoolean(value, undefinedValue) {
*/ */
function _mapStateToProps(state, ownProps) { function _mapStateToProps(state, ownProps) {
const { participantId } = ownProps; const { participantId } = ownProps;
const participant
= getParticipantById(
state['features/base/participants'],
participantId);
return { return {
_avatar: _avatar: participant && getAvatarURL(participant),
getAvatarURL(
getParticipantById(
state['features/base/participants'],
participantId)),
_videoTrack: _videoTrack:
getTrackByMediaTypeAndParticipant( getTrackByMediaTypeAndParticipant(
state['features/base/tracks'], state['features/base/tracks'],