Fixed comment trending filter issue

This commit is contained in:
Mustafa Buyukcelebi 2019-12-12 01:02:46 +03:00
parent 4a603ac0a5
commit c7d7c2b983
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -19,7 +19,7 @@ class CommentsDisplayView extends PureComponent {
constructor(props) {
super(props);
this.state = {
selectedFilter: null,
selectedFilter: 'trending',
selectedOptionIndex: 0,
};
}