Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
357 B
2
Indexable
Never
const mapStateToProps = (state) => {
  console.log('ActiveChat.mapStateToProps invoked', state);
  return {
    user: state.user,
    conversation: Object.assign({}, 
        state.conversations &&
        state.conversations.find(
          (conversation) => conversation.otherUser.username === state.activeConversation
        )
      )
  };
};