web/src/utils/uploadFormDataToIPFS.ts
Function uploadFormDataToIPFS
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function uploadFormDataToIPFS(formData: FormData, operation = "evidence"): Promise<Response> {
const authToken = sessionStorage.getItem("auth-token")?.replace(/"/g, "");
return toast.promise<Response, Error>(
fetch(`/.netlify/functions/uploadToIPFS?key=kleros-v2&operation=${operation}`, {
- Create a ticketCreate a ticket