From 19a9f370bc99b72e320ebda2125fd7ca9eb0f0ef Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Thu, 10 Dec 2020 12:51:11 -0800 Subject: fix (#136) --- src/services/UserProfileService.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index 18bcfb5a..5209aeb7 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -30,6 +30,8 @@ export const loadProfileInfo = async (token: string, userId: string) => { let {name, biography, website, birthday, gender, snapchat, tiktok} = info; birthday = birthday && moment(birthday).format('YYYY-MM-DD'); return {name, biography, website, birthday, gender, snapchat, tiktok}; + } else { + throw 'Unable to load profile data'; } } catch (error) { Alert.alert( -- cgit v1.2.3-70-g09d2