From 3f195b5b2e94a8aae869c3c5228a8d4fd38c21bd Mon Sep 17 00:00:00 2001 From: Vlad-Pischaeff Date: Wed, 21 Sep 2022 08:35:24 +0500 Subject: [PATCH] fix: inbox - crashes with invalid time value #838 --- src/components/Messaging/MessageBody.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Messaging/MessageBody.js b/src/components/Messaging/MessageBody.js index e394991e9..5e44eef81 100644 --- a/src/components/Messaging/MessageBody.js +++ b/src/components/Messaging/MessageBody.js @@ -383,7 +383,9 @@ const SenderInformation = ({ type === 'announce') && ( <> - DATE: {format(message?.composed_at, 'yyyy/MM/dd')} + DATE: + {message?.composed_at && + format(new Date(message.composed_at), 'yyyy/MM/dd')} {message?.bulk_message_recipients && message.bulk_message_recipients.map((recipient, i) => (