Compare commits

...

1 Commits

Author SHA1 Message Date
llaniau 1276a73c21 Chgt proprs en state pour tel, etc 2021-01-05 17:46:13 +01:00
+8 -7
View File
@@ -181,13 +181,13 @@ class Answer extends Component {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({
firstname: nextProps.user.firstname,
lastname: nextProps.user.lastname,
phone: nextProps.user.phone,
currentJob: nextProps.user.currentJob,
linkedin: nextProps.user.linkedin,
twitter: nextProps.user.twitter,
website: nextProps.user.website,
firstname: this.state.firstname,
lastname: this.state.lastname,
phone: this.state.phone,
currentJob: this.state.currentJob,
linkedin: this.state.linkedin,
twitter: this.state.twitter,
website: this.state.website,
mediaId: nextProps.mediaId,
mediaUrl: nextProps.mediaUrl,
thumbnails: nextProps.thumbnails,
@@ -648,6 +648,7 @@ function mapStateToProps(state, ownProps) {
cv : true,
user: state.user,
// loading: !!state.user.loading,
phone:ownProps.phone,
pictureLoading: !!state.user.pictureLoading,
errors: state.user.errors || ownProps.errors,
mediaId: state.media.message && state.media.message.mediaId,