From 43a88a105abe80af36c447638c4d7b24adc34387 Mon Sep 17 00:00:00 2001 From: plebbitor Date: Tue, 11 Apr 2023 11:15:19 +0200 Subject: [PATCH] fix properties in pending view --- src/components/views/Pending.jsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/views/Pending.jsx b/src/components/views/Pending.jsx index eece3a5c..1f58c149 100644 --- a/src/components/views/Pending.jsx +++ b/src/components/views/Pending.jsx @@ -227,18 +227,18 @@ const Pending = () => { ) : null}   - {comment.author?.displayName - ? comment.author?.displayName.length > 20 + {comment.displayName + ? comment.displayName.length > 20 ? <> - {comment.author?.displayName.slice(0, 20) + " (...)"} + {comment.displayName.slice(0, 20) + " (...)"} : - {comment.author?.displayName} + {comment.displayName} : Anonymous}   @@ -246,7 +246,7 @@ const Pending = () => { (u/ - {comment.author?.shortAddress} + {comment.author?.address} )   @@ -273,25 +273,25 @@ const Pending = () => {
- {comment.author?.displayName - ? comment.author?.displayName.length > 15 + {comment.displayName + ? comment.displayName.length > 15 ? <> - {comment.author?.displayName.slice(0, 15) + " (...)"} + {comment.displayName.slice(0, 15) + " (...)"} : - {comment.author?.displayName} + {comment.displayName} : Anonymous}   (u/ - {comment.author?.shortAddress} + {comment.author?.address}