diff --git a/src/component/claimList/view.js b/src/component/claimList/view.js index f2d4daf..aca326f 100644 --- a/src/component/claimList/view.js +++ b/src/component/claimList/view.js @@ -71,7 +71,7 @@ class ClaimList extends React.PureComponent { } buildClaimSearchOptions() { - const { orderBy = Constants.DEFAULT_ORDER_BY, channelIds, showNsfwContent, tags, time } = this.props; + const { orderBy, channelIds, showNsfwContent, tags, time } = this.props; const { currentPage, subscriptionsView } = this.state; const options = { diff --git a/src/page/trending/view.js b/src/page/trending/view.js index 33f9de2..33774c2 100644 --- a/src/page/trending/view.js +++ b/src/page/trending/view.js @@ -45,9 +45,12 @@ class TrendingPage extends React.PureComponent { } onComponentFocused = () => { - const { pushDrawerStack, setPlayerVisible, navigation } = this.props; + const { pushDrawerStack, setPlayerVisible, navigation, sortByItem } = this.props; const { filterForTags } = navigation.state.params ? navigation.state.params : { filterForTags: false }; - this.setState({ currentTrendingForItem: TRENDING_FOR_ITEMS[filterForTags ? 1 : 0] }); + this.setState({ + currentTrendingForItem: TRENDING_FOR_ITEMS[filterForTags ? 1 : 0], + orderBy: getOrderBy(sortByItem), + }); pushDrawerStack(Constants.DRAWER_ROUTE_TRENDING, navigation.state.params); setPlayerVisible(); NativeModules.Firebase.setCurrentScreen('All content'); @@ -110,7 +113,7 @@ class TrendingPage extends React.PureComponent { - {sortByTop && in the} + {sortByTop && from} {sortByTop && ( this.setState({ showTimePicker: true })}>