Update pending-post.tsx

This commit is contained in:
plebeius
2025-07-29 16:59:43 +02:00
parent ad6b702c48
commit d9b8b00374
+2 -1
View File
@@ -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) {