diff --git a/package.json b/package.json index a5b0e9a..241c8e7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/codex-storage/codex-marketplace-ui-components" }, - "version": "0.0.12", + "version": "0.0.13", "type": "module", "scripts": { "prepack": "npm run build", diff --git a/src/components/Upload/UploadFile.tsx b/src/components/Upload/UploadFile.tsx index 2631a4e..74341ba 100644 --- a/src/components/Upload/UploadFile.tsx +++ b/src/components/Upload/UploadFile.tsx @@ -154,10 +154,10 @@ export function UploadFile({ return; } - dispatch({ type: "completed", cid: state.cid }); + dispatch({ type: "completed", cid: res.data }); - onSuccess?.(state.cid, file); - }, [state.cid, codexData, onSuccess, file]); + onSuccess?.(res.data, file); + }, [codexData, onSuccess, file]); const init = useRef(false);