mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Fixed multiple account feed issue
This commit is contained in:
parent
b15add64fe
commit
1d510a3741
@ -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}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user