Update pending-post.tsx

This commit is contained in:
plebeius
2026-02-26 18:30:36 +08:00
parent 4f342fed3f
commit ca0391f557
+1 -2
View File
@@ -20,8 +20,7 @@ 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) {