diff --git a/demo/src/components/MessageComponent/MessageComponent.tsx b/demo/src/components/MessageComponent/MessageComponent.tsx index 8d2038cf..55646cf1 100644 --- a/demo/src/components/MessageComponent/MessageComponent.tsx +++ b/demo/src/components/MessageComponent/MessageComponent.tsx @@ -79,17 +79,16 @@ export const MessageComponent: React.FC = ({ {shortDate(message.createdAt)} {message.createdAt.toLocaleString()} - {message.isUpdated && ( - <> + { (message.isUpdated && message.updatedAt) ? <> {' '} · Edited{' '} - {shortDate(message.updatedAt!)} - {message.updatedAt!.toLocaleString()} + {shortDate(message.updatedAt)} + {message.updatedAt.toLocaleString()} { message.updatedBy ? by {message.updatedBy} : '' } - - )} + : '' + }