diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-12-10 12:51:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 15:51:11 -0500 |
commit | 19a9f370bc99b72e320ebda2125fd7ca9eb0f0ef (patch) | |
tree | 82bfdc4c6e7d3c1f31dc6c80a94d6c2bf800e3ef /src | |
parent | db575615046544e83759a3615f37540305aa9742 (diff) |
fix (#136)
Diffstat (limited to 'src')
-rw-r--r-- | src/services/UserProfileService.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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( |