mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update pending-post.tsx
This commit is contained in:
@@ -17,7 +17,8 @@ const PendingPost = () => {
|
|||||||
(!isNaN(parseInt(accountCommentIndex)) &&
|
(!isNaN(parseInt(accountCommentIndex)) &&
|
||||||
parseInt(accountCommentIndex) >= 0 &&
|
parseInt(accountCommentIndex) >= 0 &&
|
||||||
Number.isInteger(parseFloat(accountCommentIndex)) &&
|
Number.isInteger(parseFloat(accountCommentIndex)) &&
|
||||||
(accountComments?.length === 0 || parseInt(accountCommentIndex) < accountComments.length));
|
accountComments?.length > 0 &&
|
||||||
|
parseInt(accountCommentIndex) < accountComments.length);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isValidAccountCommentIndex) {
|
if (!isValidAccountCommentIndex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user