Fixed multiple account feed issue

This commit is contained in:
Mustafa Buyukcelebi 2019-07-22 15:20:50 +03:00
parent b15add64fe
commit 1d510a3741
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class PostsContainer extends PureComponent {
return ( return (
<PostsView <PostsView
handleOnScrollStart={this._handleOnScrollStart} handleOnScrollStart={this._handleOnScrollStart}
currentAccountUsername={currentAccount && currentAccount.username} currentAccountUsername={currentAccount && (currentAccount.username || currentAccount.name)}
setFeedPosts={this._setFeedPosts} setFeedPosts={this._setFeedPosts}
feedPosts={feedPosts} feedPosts={feedPosts}
isConnected={isConnected} isConnected={isConnected}

View File

@ -22,7 +22,7 @@ class PostsView extends Component {
super(props); super(props);
this.state = { this.state = {
posts: props.feedPosts, posts: props.isConnected ? [] : props.feedPosts,
startAuthor: '', startAuthor: '',
startPermlink: '', startPermlink: '',
refreshing: false, refreshing: false,