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 (
<PostsView
handleOnScrollStart={this._handleOnScrollStart}
currentAccountUsername={currentAccount && currentAccount.username}
currentAccountUsername={currentAccount && (currentAccount.username || currentAccount.name)}
setFeedPosts={this._setFeedPosts}
feedPosts={feedPosts}
isConnected={isConnected}

View File

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