aboutsummaryrefslogtreecommitdiff
path: root/src/services/UserProfileService.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2020-10-27 20:44:36 -0400
committerGitHub <noreply@github.com>2020-10-27 20:44:36 -0400
commit24c269c9d52ec7cf2cd383a8d7c3aee43ed475c1 (patch)
tree39044f1b6a4f52db941a75f9fa30a1184bf06720 /src/services/UserProfileService.ts
parentb41a975012172ba336b27ab3d64ed078b07633cd (diff)
[TMA-180] Image Carousel for Tagg Posts (#77)
* image carousel done * fixed a minor bug * TikTok is TikTok NOT Tiktok OKAY? Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
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;
};