mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +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) {
|
} else if (author && permlink) {
|
||||||
await getComments(author, permlink, name)
|
await getComments(author, permlink, name)
|
||||||
.then(comments => {
|
.then(comments => {
|
||||||
if (selectedFilter && selectedFilter !== 'trending') {
|
if (selectedFilter) {
|
||||||
const sortComments = this._shortComments(selectedFilter, comments);
|
const sortComments = this._shortComments(selectedFilter, comments);
|
||||||
this.setState({
|
this.setState({
|
||||||
comments: sortComments,
|
comments: sortComments,
|
||||||
|
@ -19,7 +19,7 @@ class CommentsDisplayView extends PureComponent {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
selectedFilter: null,
|
selectedFilter: 'trending',
|
||||||
selectedOptionIndex: 0,
|
selectedOptionIndex: 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user