Skip to content

Commit

Permalink
Merge pull request #2218 from stakwork/feature/bountie-create-payload
Browse files Browse the repository at this point in the history
feat: passed properties for bountie create
  • Loading branch information
Rassl authored Sep 24, 2024
2 parents 1201e2c + 4089e38 commit c8c63c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,15 @@ export const Body = () => {
}

const onSubmit = async (data: FormData) => {
const { budget, nodeType } = data

const nodeData = { name: nodeType }
const { budget } = data

const payload = {
type: 'code_generation',
amount: Number(budget),
workspace_uuid: 'ck9drb84nncjnaefo090',
jwt_token: 'abced-12345',
ref_id: selectedNode?.ref_id as string,
node_data: nodeData,
node_data: selectedNode?.properties || {},
}

try {
Expand Down
2 changes: 1 addition & 1 deletion src/network/postBounty/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type BountyPayload = {
jwt_token: string | null
ref_id: string
node_data: {
name: string
[key: string]: never | undefined
}
}

Expand Down

0 comments on commit c8c63c2

Please sign in to comment.