mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
Fixed comment trending filter issue
This commit is contained in:
parent
4a603ac0a5
commit
c7d7c2b983
@ -137,7 +137,7 @@ class CommentsContainer extends Component {
|
||||
} else if (author && permlink) {
|
||||
await getComments(author, permlink, name)
|
||||
.then(comments => {
|
||||
if (selectedFilter && selectedFilter !== 'trending') {
|
||||
if (selectedFilter) {
|
||||
const sortComments = this._shortComments(selectedFilter, comments);
|
||||
this.setState({
|
||||
comments: sortComments,
|
||||
|
@ -19,7 +19,7 @@ class CommentsDisplayView extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
selectedFilter: null,
|
||||
selectedFilter: 'trending',
|
||||
selectedOptionIndex: 0,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user