mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-03 11:40:44 +03:00
fix promise error
This commit is contained in:
parent
09a608adc4
commit
1249988983
@ -715,4 +715,4 @@ SPEC CHECKSUMS:
|
||||
|
||||
PODFILE CHECKSUM: 1f30c7da5061dbc47185442a6ab4a3c95ac48c04
|
||||
|
||||
COCOAPODS: 1.10.0
|
||||
COCOAPODS: 1.9.3
|
||||
|
@ -314,7 +314,8 @@ export const getCommunities = async (
|
||||
resolve({});
|
||||
}
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
console.log(error);
|
||||
resolve({});
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -46,7 +46,7 @@ const CommunitiesResultsContainer = ({ children, navigation, searchValue }) => {
|
||||
setNoResult(false);
|
||||
|
||||
getSubscriptions(currentAccount.username).then((subs) => {
|
||||
getCommunities('', searchValue ? 250 : 20, searchValue, 'rank').then((communities) => {
|
||||
getCommunities('', searchValue ? 100 : 20, searchValue, 'rank').then((communities) => {
|
||||
communities.forEach((community) =>
|
||||
Object.assign(community, {
|
||||
isSubscribed: subs.some(
|
||||
|
Loading…
Reference in New Issue
Block a user