diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-25 14:21:43 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-03-25 14:21:43 -0400 |
commit | 54de628b27647099170bc6d5eea7110c8dd5e8f0 (patch) | |
tree | 3860a6a4150d8ba453bc7237243b1b5e97961443 /src/services/UserProfileService.ts | |
parent | e80e22569e9699b5bc0f2f7e3cc2f0e790e382a8 (diff) |
renamed to profile and header
Diffstat (limited to 'src/services/UserProfileService.ts')
-rw-r--r-- | src/services/UserProfileService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index b499829f..e00c0530 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -55,11 +55,11 @@ export const loadProfileInfo = async (token: string, userId: string) => { export const getProfilePic = async ( token: string, userId: string, - type: 'large' | 'small', + type: 'profile' | 'header', ) => { try { const url = - type === 'small' ? PROFILE_PHOTO_ENDPOINT : HEADER_PHOTO_ENDPOINT; + type === 'profile' ? PROFILE_PHOTO_ENDPOINT : HEADER_PHOTO_ENDPOINT; const response = await fetch(url + `${userId}/`, { method: 'GET', headers: { |