diff --git a/src/components/editorElements/tagArea/view/tagAreaView.js b/src/components/editorElements/tagArea/view/tagAreaView.js index 95aad9e93..1b2d0b3a7 100644 --- a/src/components/editorElements/tagArea/view/tagAreaView.js +++ b/src/components/editorElements/tagArea/view/tagAreaView.js @@ -103,7 +103,7 @@ export default class TagAreaView extends Component { handleOnChange={text => this._handleOnChange(text, i)} handleOnBlur={() => this._handleOnBlur(i)} blurOnSubmit - value={chip && chip} + value={draftChips.length > 0 ? chip && chip : null} autoCapitalize="none" {...this.props} /> diff --git a/src/config/routes.js b/src/config/routes.js index 3cb6b9712..94a9c282f 100644 --- a/src/config/routes.js +++ b/src/config/routes.js @@ -77,6 +77,6 @@ export default createSwitchNavigator({ stackNavigatior, [ROUTES.SCREENS.LOGIN]: { screen: RootComponent()(Login) }, [ROUTES.SCREENS.PINCODE]: { screen: RootComponent()(PinCode) }, - [ROUTES.SCREENS.SPLASH]: { screen: Editor }, + [ROUTES.SCREENS.SPLASH]: { screen: Splash }, [ROUTES.SCREENS.STEEM_CONNECT]: { screen: RootComponent()(SteemConnect) }, }); diff --git a/src/realm/realm.js b/src/realm/realm.js index 3a788e871..bcb6fb2ab 100644 --- a/src/realm/realm.js +++ b/src/realm/realm.js @@ -100,8 +100,7 @@ export const updateUserData = userData => new Promise((resolve, reject) => { export const setDraftPost = (fields, username) => new Promise((resolve, reject) => { try { const draft = realm.objects(DRAFT_SCHEMA).filtered('username = $0', username); - console.log(fields); - console.log("ustebak"); + realm.write(() => { if (Array.from(draft).length > 0) { draft[0].title = fields.title;