Skip to content

Commit

Permalink
fix(bounty-modal): add pubkey to bounty creation payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoaibdev7 committed Dec 23, 2024
1 parent c16b233 commit b84ff07
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SuccessNotify } from '~/components/common/SuccessToast'
import { postBountyData } from '~/network/postBounty'
import { useSelectedNode } from '~/stores/useGraphStore'
import { useModal } from '~/stores/useModalStore'
import { useUserStore } from '~/stores/useUserStore'
import { getSignedTimestamp } from '~/utils/getSignedTimestamp'
import { CreateBounty } from '../CreateBounty'

Expand All @@ -17,6 +18,7 @@ export const Body = () => {
const [errMessage, setErrMessage] = useState<string>('')
const { close } = useModal('createBounty')
const selectedNode = useSelectedNode()
const { pubKey } = useUserStore()
const form = useForm<FormData>({ mode: 'onChange' })
const { handleSubmit, setValue } = form

Expand All @@ -40,6 +42,7 @@ export const Body = () => {
ref_id: selectedNode?.ref_id as string,
node_data: selectedNode?.properties || {},
jwt_token: signedToken,
pub_key: pubKey,
}

await postBountyData(payload)
Expand Down

0 comments on commit b84ff07

Please sign in to comment.