From 6042361add355870783c4a861014cf0324de0c70 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Mon, 19 Jun 2023 10:04:46 +0200 Subject: [PATCH] fix undefined --- src/components/PostOnHover.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/PostOnHover.jsx b/src/components/PostOnHover.jsx index 4bb35302..fbf7306c 100644 --- a/src/components/PostOnHover.jsx +++ b/src/components/PostOnHover.jsx @@ -190,15 +190,15 @@ const PostOnHover = ({ cid, feed }) => {
- {reply.author.displayName - ? reply.author.displayName.length > 20 + {reply.author?.displayName + ? reply.author?.displayName.length > 20 ? - {reply.author.displayName.slice(0, 20) + " (...)"} + {reply.author?.displayName.slice(0, 20) + " (...)"} : - {reply.author.displayName} + {reply.author?.displayName} : Anonymous}