diff options
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r-- | src/services/UserProfileService.ts | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index 8c88f0ab..75042830 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -29,9 +29,27 @@ export const loadProfileInfo = async (token: string, userId: string) => { const status = response.status; if (status === 200) { const info = await response.json(); - let {name, biography, website, birthday, gender, snapchat, tiktok} = info; + let { + name, + biography, + website, + birthday, + gender, + snapchat, + tiktok, + university_class, + } = info; birthday = birthday && moment(birthday).format('YYYY-MM-DD'); - return {name, biography, website, birthday, gender, snapchat, tiktok}; + return { + name, + biography, + website, + birthday, + gender, + snapchat, + tiktok, + university_class, + }; } else { throw 'Unable to load profile data'; } |