From cb23087ff5370aa79165bc1e0524730daa9704e9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Feb 2024 10:24:02 +0100 Subject: [PATCH] More robust avatar finder --- client/src/app/helpers/utils/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/helpers/utils/channel.ts b/client/src/app/helpers/utils/channel.ts index fe59ea567..e7d0c39f7 100644 --- a/client/src/app/helpers/utils/channel.ts +++ b/client/src/app/helpers/utils/channel.ts @@ -40,5 +40,5 @@ export { function getAvatarPath (c: VideoChannel) { if (!c.avatars || c.avatars.length === 0) return undefined - return minBy(c.avatars, 'width').path + return minBy(c.avatars, 'width')?.path || c.avatars[0].path }