Skip to content

Commit b121de6

Browse files
committed
fix(web): upload-to-ipfs-token-fetch
1 parent cb8375b commit b121de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/utils/uploadFormDataToIPFS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { toast } from "react-toastify";
33
import { OPTIONS } from "utils/wrapWithToast";
44

55
export function uploadFormDataToIPFS(formData: FormData, operation = "evidence"): Promise<Response> {
6-
const authToken = sessionStorage.getItem("auth-token")?.replace(/"/g, "");
6+
const authToken = sessionStorage.getItem("authToken")?.replace(/"/g, "");
77

88
return toast.promise<Response, Error>(
99
fetch(`/.netlify/functions/uploadToIPFS?key=kleros-v2&operation=${operation}`, {

0 commit comments

Comments
 (0)