Merge pull request #1938 from ecency/nt/bug-fixes

Nt/bug fixes
This commit is contained in:
Feruz M 2021-04-29 05:23:02 +03:00 committed by GitHub
commit 2fe1cad6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ export const loadPosts = async ({
isLoading ||
!isConnected ||
(!isLoggedIn && filterKey === 'feed') ||
(!isLoggedIn && filterKey === 'blog')
(!isLoggedIn && filterKey === 'communities')
) {
return;
}

View File

@ -228,7 +228,7 @@ const TabEmptyView = ({
//render related operations
if ((filterKey === 'feed' || filterKey === 'blog' || filterKey === 'friends' || filterKey === 'communities') && !isLoggedIn) {
if ((filterKey === 'feed' || filterKey === 'friends' || filterKey === 'communities') && !isLoggedIn) {
return (
<NoPost
imageStyle={styles.noImage}

View File

@ -35,6 +35,7 @@ const FeedScreen = () => {
<Header enableViewModeToggle={true} />
<SafeAreaView style={styles.container}>
<TabbedPosts
key={JSON.stringify(filterOptions)} //this hack of key change resets tabbedposts whenever filters chanage, effective to remove filter change android bug
filterOptions={filterOptions}
filterOptionsValue={feedScreenFilters}
getFor={get(currentAccount, 'name', null) ? 'feed' : 'hot'}