Skip to content

Commit b97dfe1

Browse files
committed
fix(web): correct promise typing
1 parent 247ff22 commit b97dfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/utils/uploadFormDataToIPFS.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface RenderError extends ToastContentProps {
66
data: FetchError;
77
}
88

9-
export function uploadFormDataToIPFS(formData: FormData) {
9+
export function uploadFormDataToIPFS(formData: FormData): Promise<Response> {
1010
return toast.promise(
1111
new Promise((resolve, reject) =>
1212
fetch("/.netlify/functions/uploadToIPFS", {

0 commit comments

Comments
 (0)