Skip to content
Snippets Groups Projects
Commit ec88e495 authored by Mikkel Aas's avatar Mikkel Aas
Browse files

updated variable names

parent 840bf229
No related branches found
No related tags found
1 merge request!87Update fetch calls
......@@ -26,14 +26,14 @@ export default function StateUserPageView({route}: any): JSX.Element {
};
// create person VC
const rawdata = await fetch(STATE_PERSON_CREDENTIAL_URL, {
const response = await fetch(STATE_PERSON_CREDENTIAL_URL, {
method: 'POST',
body: JSON.stringify(credentialSubject),
headers: {
'Content-Type': 'application/json'
}
});
const credential = await rawdata.json();
const credential = await response.json();
const credentialToken = credential.credential.proof.jwt;
// construct a message body.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment