aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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(