Skip to content

Commit 61c5ed7

Browse files
fix(web): error-handling-in-submit-evidence-modal
1 parent 4f2e88f commit 61c5ed7

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)