From e7ac13b3012eaf448caa6cd7e7325248a0536abd Mon Sep 17 00:00:00 2001 From: feruz Date: Mon, 27 Jan 2020 07:56:01 +0200 Subject: [PATCH] draft empty after submit post --- src/screens/editor/container/editorContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/editor/container/editorContainer.js b/src/screens/editor/container/editorContainer.js index 83064957c..a58c6112e 100644 --- a/src/screens/editor/container/editorContainer.js +++ b/src/screens/editor/container/editorContainer.js @@ -274,6 +274,8 @@ class EditorContainer extends Component { 0, ) .then(() => { + setDraftPost({ title: '', body: '', tags: '' }, currentAccount.name); + dispatch( toastNotification( intl.formatMessage({ @@ -284,8 +286,6 @@ class EditorContainer extends Component { this.setState({ isPostSending: false }); - setDraftPost({ title: '', body: '', tags: '' }, currentAccount.name); - navigation.navigate({ routeName: ROUTES.SCREENS.POST, params: {