From 3f576912555be6eec971ea073d702a54d0b85486 Mon Sep 17 00:00:00 2001 From: plebeius Date: Thu, 8 Jan 2026 18:56:43 +0100 Subject: [PATCH] fix ts errors --- src/views/mod-queue/mod-queue.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/mod-queue/mod-queue.tsx b/src/views/mod-queue/mod-queue.tsx index 37539fcf..25bcdea8 100644 --- a/src/views/mod-queue/mod-queue.tsx +++ b/src/views/mod-queue/mod-queue.tsx @@ -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); },