From d9b8b003746f4a0a14de769ea0c873a91ed0e22f Mon Sep 17 00:00:00 2001 From: plebeius Date: Tue, 29 Jul 2025 16:59:43 +0200 Subject: [PATCH] Update pending-post.tsx --- src/views/pending-post/pending-post.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/pending-post/pending-post.tsx b/src/views/pending-post/pending-post.tsx index 6e12f491..e7f11c56 100644 --- a/src/views/pending-post/pending-post.tsx +++ b/src/views/pending-post/pending-post.tsx @@ -17,7 +17,8 @@ const PendingPost = () => { (!isNaN(parseInt(accountCommentIndex)) && parseInt(accountCommentIndex) >= 0 && Number.isInteger(parseFloat(accountCommentIndex)) && - (accountComments?.length === 0 || parseInt(accountCommentIndex) < accountComments.length)); + accountComments?.length > 0 && + parseInt(accountCommentIndex) < accountComments.length); useEffect(() => { if (!isValidAccountCommentIndex) {