diff --git a/src/providers/hive/dhive.js b/src/providers/hive/dhive.js index 4f719deee..980c1a49b 100644 --- a/src/providers/hive/dhive.js +++ b/src/providers/hive/dhive.js @@ -295,7 +295,7 @@ export const getCommunityTitle = async (tag) => export const getCommunities = async ( last = '', limit = 100, - query = '', + query = null, sort = 'rank', observer = '', ) => diff --git a/src/screens/communities/container/communitiesContainer.js b/src/screens/communities/container/communitiesContainer.js index 162a05e83..7de2b79e7 100644 --- a/src/screens/communities/container/communitiesContainer.js +++ b/src/screens/communities/container/communitiesContainer.js @@ -30,7 +30,7 @@ const CommunitiesContainer = ({ children, navigation }) => { useEffect(() => { getSubscriptions(currentAccount.username).then((subs) => { subs.forEach((item) => item.push(true)); - getCommunities('', 50, '', 'rank').then((communities) => { + getCommunities('', 50, null, 'rank').then((communities) => { communities.forEach((community) => Object.assign(community, { isSubscribed: subs.some( diff --git a/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js b/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js index 713b2eab0..36e96f35c 100644 --- a/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js +++ b/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js @@ -45,7 +45,7 @@ const CommunitiesResultsContainer = ({ children, navigation, searchValue }) => { setData([]); setNoResult(false); - getCommunities('', searchValue ? 100 : 20, searchValue, 'rank') + getCommunities('', searchValue ? 100 : 20, searchValue || null, 'rank') .then((communities) => { if (currentAccount && currentAccount.username) { getSubscriptions(currentAccount.username).then((subs) => {