diff --git a/src/components/sideMenu/view/sideMenuView.js b/src/components/sideMenu/view/sideMenuView.js index ae01c8c9a..b44f8ca9a 100644 --- a/src/components/sideMenu/view/sideMenuView.js +++ b/src/components/sideMenu/view/sideMenuView.js @@ -39,11 +39,16 @@ class SideMenuView extends Component { // Component Life Cycles componentWillReceiveProps(nextProps) { - const { isLoggedIn } = this.props; + const { isLoggedIn, accounts } = this.props; + const { isAddAccountIconActive } = this.state; if (isLoggedIn !== nextProps.isLoggedIn) { this._setMenuItems(nextProps.isLoggedIn); } + + if (accounts !== nextProps.accounts && isAddAccountIconActive) { + this.setState({ menuItems: nextProps.accounts }); + } } // Component Functions diff --git a/src/screens/editor/container/editorContainer.js b/src/screens/editor/container/editorContainer.js index 3e91770ee..aa51bb115 100644 --- a/src/screens/editor/container/editorContainer.js +++ b/src/screens/editor/container/editorContainer.js @@ -366,6 +366,8 @@ class EditorContainer extends Component { key: permlink, }); + this.setState({ isPostSending: false }); + setDraftPost( { title: '', body: '', tags: '' }, currentAccount.name, @@ -485,6 +487,8 @@ class EditorContainer extends Component { navigation.goBack(); navigation.state.params.fetchPost(); } + + this.setState({ isPostSending: false }); }; _handleOnBackPress = () => {