Skip to content

Commit 3c73f4e

Browse files
committed
refactor(web): fix sonarclound smells
1 parent b966dd3 commit 3c73f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/utils/uploadFormDataToIPFS.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { toast, ToastContentProps } from "react-toastify";
22
import { OPTIONS } from "utils/wrapWithToast";
33
import { FetchError } from "node-fetch";
44

5-
interface renderError extends ToastContentProps {
5+
interface RenderError extends ToastContentProps {
66
data: FetchError;
77
}
88

@@ -22,7 +22,7 @@ export function uploadFormDataToIPFS(formData: FormData) {
2222
pending: "Uploading evidence to IPFS...",
2323
success: "Uploaded successfully!",
2424
error: {
25-
render({ data }: renderError) {
25+
render({ data }: RenderError) {
2626
return `Upload failed: ${data.message}`;
2727
},
2828
},

0 commit comments

Comments
 (0)