aboutsummaryrefslogtreecommitdiff
path: root/src/services/UserProfileService.ts
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-12-10 12:51:11 -0800
committerGitHub <noreply@github.com>2020-12-10 15:51:11 -0500
commit19a9f370bc99b72e320ebda2125fd7ca9eb0f0ef (patch)
tree82bfdc4c6e7d3c1f31dc6c80a94d6c2bf800e3ef /src/services/UserProfileService.ts
parentdb575615046544e83759a3615f37540305aa9742 (diff)
fix (#136)
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r--src/services/UserProfileService.ts2
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(