fix ts errors

This commit is contained in:
plebeius
2026-01-08 18:56:43 +01:00
parent fbdfadc65c
commit 3f57691255
+12 -4
View File
@@ -70,8 +70,12 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) =>
commentCid: cid,
subplebbitAddress,
commentModeration: { approved: true },
onChallenge: (...args: any) => addChallenge([...args, comment]),
onChallengeVerification: alertChallengeVerificationFailed,
onChallenge: async (...args: any) => {
addChallenge([...args, comment]);
},
onChallengeVerification: async (challengeVerification, comment) => {
alertChallengeVerificationFailed(challengeVerification, comment);
},
onError: (error: Error) => {
console.error('Approve failed:', error);
},
@@ -85,8 +89,12 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) =>
commentCid: cid,
subplebbitAddress,
commentModeration: { removed: true },
onChallenge: (...args: any) => addChallenge([...args, comment]),
onChallengeVerification: alertChallengeVerificationFailed,
onChallenge: async (...args: any) => {
addChallenge([...args, comment]);
},
onChallengeVerification: async (challengeVerification, comment) => {
alertChallengeVerificationFailed(challengeVerification, comment);
},
onError: (error: Error) => {
console.error('Reject failed:', error);
},