[Resolved]Logout while being under the Profile page throws exception. (#73)

This commit is contained in:
Qolzam
2018-07-10 18:00:16 +07:00
parent 037f333642
commit 930de94d1f
4 changed files with 7 additions and 6 deletions

View File

@@ -392,8 +392,8 @@ const mapStateToProps = (state: Map<string, any>, ownProps: ICommentGroupCompone
translate: getTranslate(state.get('locale')),
commentsRequestStatus : commentsRequestStatus ? commentsRequestStatus.status : ServerRequestStatusType.NoAction,
commentSlides,
avatar: user.avatar || '',
fullName: user.fullName || '',
avatar: user ? user.avatar : '',
fullName: user ? user.fullName : '',
userInfo: state.getIn(['user', 'info'])
}