Skip to content

Commit 9a2071b

Browse files
authoredOct 23, 2024
Merge pull request #1724 from kleros/fix/evidence-modal-error-handling
fix(web): error-handling-in-submit-evidence-modal
2 parents 4f2e88f + 61c5ed7 commit 9a2071b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎web/src/pages/Cases/CaseDetails/Evidence/SubmitEvidenceModal.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ const SubmitEvidenceModal: React.FC<{
8383
close();
8484
})
8585
.finally(() => setIsSending(false));
86-
} catch {
86+
} catch (error) {
8787
setIsSending(false);
88+
toast.error("Failed to submit evidence.", toastOptions);
89+
console.error("Error in submitEvidence:", error);
8890
}
8991
}, [publicClient, wagmiConfig, walletClient, close, evidenceGroup, file, message, setIsSending, uploadFile]);
9092

0 commit comments

Comments
 (0)