From 33065ad1b09b57688d52dfd76697d4fa4279aca1 Mon Sep 17 00:00:00 2001 From: noumantahir Date: Fri, 8 Apr 2022 05:17:57 +0500 Subject: [PATCH] preserving blog pinned status while updating profile --- src/containers/profileEditContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/containers/profileEditContainer.js b/src/containers/profileEditContainer.js index 28177cadf..2eaea39ac 100644 --- a/src/containers/profileEditContainer.js +++ b/src/containers/profileEditContainer.js @@ -58,6 +58,7 @@ class ProfileEditContainer extends Component { location: get(props.currentAccount, 'about.profile.location'), website: get(props.currentAccount, 'about.profile.website'), coverUrl: get(props.currentAccount, 'about.profile.cover_image'), + pinned: get(props.currentAccount, 'about.profile.pinned'), avatarUrl: get(props.currentAccount, 'avatar'), }; } @@ -145,7 +146,7 @@ class ProfileEditContainer extends Component { _handleOnSubmit = async () => { const { currentAccount, pinCode, dispatch, navigation, intl } = this.props; - const { name, location, website, about, coverUrl, avatarUrl } = this.state; + const { name, location, website, about, coverUrl, avatarUrl, pinned } = this.state; this.setState({ isLoading: true }); @@ -157,6 +158,7 @@ class ProfileEditContainer extends Component { website, about, location, + pinned, version: 2, };