diff --git a/src/site/kick.com/modules/chat/ChatObserver.vue b/src/site/kick.com/modules/chat/ChatObserver.vue index a2f7ee65..e67cd342 100644 --- a/src/site/kick.com/modules/chat/ChatObserver.vue +++ b/src/site/kick.com/modules/chat/ChatObserver.vue @@ -44,7 +44,6 @@ function getReactProps(element: HTMLElement): T | undefined { } function isDefaultReactMessageProps(props: unknown): props is Kick.Message.DefaultProps { - return ( props != null && typeof props === "object" && @@ -61,8 +60,6 @@ function getMessageReactProps(el: HTMLDivElement): Kick.Message.DefaultProps | u const props = getReactProps(messageElements as HTMLElement) as | { children: ReactExtended.Writeable } | undefined; - - if (!props || !Array.isArray(props.children)) return; const child = props.children.find((child) => child?.props?.sender);