From 0ece14054ff15b8d7ee9d24ee0c113a1e8a1c511 Mon Sep 17 00:00:00 2001 From: Shea Date: Fri, 26 Jun 2026 02:24:03 +0300 Subject: [PATCH] fix-weird-bug Signed-off-by: Shea --- src/app/components/message/Reply.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/message/Reply.tsx b/src/app/components/message/Reply.tsx index b25d2130d..e0c1d4e75 100644 --- a/src/app/components/message/Reply.tsx +++ b/src/app/components/message/Reply.tsx @@ -355,7 +355,8 @@ export const Reply = as<'div', ReplyProps>( } )?.question; image = timelineIcon(ListBullets); - bodyJSX = `'s poll asking ${(question[M_TEXT.name] as string) ?? question.body ?? ''}`; + if (question) + bodyJSX = `'s poll asking ${(question[M_TEXT.name] as string) ?? question?.body ?? ''}`; } else if (isFormattedReply && formattedBody !== '') { const sanitizedHtml = sanitizeReplyFormattedPreview(formattedBody); if (shouldParseReplyFormattedPreview(sanitizedHtml)) {