small fix

This commit is contained in:
Joshen Lim committed 2024-10-02 18:08:45 +08:00
1 parent ba09718fbd
commit f7162e9bf4
1 file changed
+1 -1
@@ -180,7 +180,7 @@ export function getAvatarUrl(user: User): string | undefined {
profileImageURL ||
profile_image_url) as string | undefined
return SUPPORTED_CSP_AVATAR_URLS.some((x) => url?.startsWith(x)) ? url : undefined
return SUPPORTED_CSP_AVATAR_URLS.some((x) => (url ?? '')?.startsWith(x)) ? url : undefined
}
export const formatUserColumns = ({