diff --git a/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx b/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx index 7afda17c7..18d5c607c 100644 --- a/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx +++ b/src/components/ModalsContainer/CreateBountyModal/Body/index.tsx @@ -24,9 +24,7 @@ export const Body = () => { } const onSubmit = async (data: FormData) => { - const { budget, nodeType } = data - - const nodeData = { name: nodeType } + const { budget } = data const payload = { type: 'code_generation', @@ -34,7 +32,7 @@ export const Body = () => { workspace_uuid: 'ck9drb84nncjnaefo090', jwt_token: 'abced-12345', ref_id: selectedNode?.ref_id as string, - node_data: nodeData, + node_data: selectedNode?.properties || {}, } try { diff --git a/src/network/postBounty/index.ts b/src/network/postBounty/index.ts index ce8d5b8c7..f7d876bbf 100644 --- a/src/network/postBounty/index.ts +++ b/src/network/postBounty/index.ts @@ -7,7 +7,7 @@ type BountyPayload = { jwt_token: string | null ref_id: string node_data: { - name: string + [key: string]: never | undefined } }