draft empty after submit post

This commit is contained in:
feruz 2020-01-27 07:56:01 +02:00
parent 3a99197cf8
commit e7ac13b301

View File

@ -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: {