diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index f52f3371f1..7d32501395 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -179,8 +179,8 @@ export const getAssetThumbnailUrl = ( return createUrl(path, { format, key: getKey(), c: checksum }); }; -export const getProfileImageUrl = (...[userId]: [string]) => { - const path = `/users/profile-image/${userId}`; +export const getProfileImageUrl = (userId: string) => { + const path = `/users/${userId}/profile-image`; return createUrl(path); };