aboutsummaryrefslogtreecommitdiff
path: root/src/services/UserProfileService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r--src/services/UserProfileService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts
index a2d53dbb..6e1d1ef5 100644
--- a/src/services/UserProfileService.ts
+++ b/src/services/UserProfileService.ts
@@ -99,6 +99,7 @@ export const loadSocialPosts: (
const token = await AsyncStorage.getItem('token');
const endpoint = integratedSocialPostsEndpoints[socialType];
const accountData: SocialAccountType = {};
+ accountData.posts = [];
try {
const response = await fetch(endpoint + `${userId}/`, {
method: 'GET',
@@ -115,7 +116,7 @@ export const loadSocialPosts: (
throw 'Unable to fetch posts data from ' + socialType;
}
} catch (error) {
- console.warn(error);
+ console.log(error);
}
return accountData;
};