Skip to content

Commit

Permalink
fix: Update fetch call for elibility
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Nov 11, 2024
1 parent 2028ecb commit 573665b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/hooks/useUnsealedResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ type Eligibility = {
const fetchUnsealedResult = async (sealedRequest: SealedRequest) => {
return fetch(`${GATEWAY_URL}/v1/community/eligibility`, {
method: 'POST',
body: JSON.stringify({ requestId: sealedRequest.requestId, sealedResult: sealedRequest.sealedResult }),
body: JSON.stringify({
requestId: sealedRequest.requestId,
sealedData: sealedRequest.sealedResult,
}),
headers: {
'Content-Type': 'application/json',
},
}).then((resp) => {
if (resp.ok) {
return resp.json() as Promise<Eligibility>
Expand Down

0 comments on commit 573665b

Please sign in to comment.