From 24c269c9d52ec7cf2cd383a8d7c3aee43ed475c1 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 27 Oct 2020 20:44:36 -0400 Subject: [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> --- src/services/UserProfileService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/services') 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; }; -- cgit v1.2.3-70-g09d2