Hide Favorite channel section when there are not favorite channels (#2439)

This commit is contained in:
Elias Nahum 2018-12-10 09:18:13 -03:00
parent 2ea9864e9c
commit c0be2808fa
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -46,7 +46,7 @@ function mapStateToProps(state) {
sidebarPrefs.grouping,
sidebarPrefs.sorting,
sidebarPrefs.unreads_at_top === 'true',
sidebarPrefs.favorite_at_top === 'true',
sidebarPrefs.favorite_at_top === 'true' && favoriteChannelIds.length,
));
return {