From 98c4c683ae796940a6a1dcb3f12edf4b5b63ed1d Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Sat, 25 May 2024 17:13:03 +0200 Subject: [PATCH] fix(web): profile picture url (#9754) --- web/src/lib/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); };