diff --git a/.env b/.env index 210fe97..57d5c1e 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ REACT_APP_API_SECRET='' -REACT_APP_SCHEMA_ID='GaugZJ4PXj9uvRp2wW1oi5:2:TNETPK_VAX_DEMO_02:0.1' +REACT_APP_SCHEMA_ID='GaugZJ4PXj9uvRp2wW1oi5:2:TNETPK_VAX_DEMO_04:0.1' REACT_APP_ISSUER_HOST_URL='' REACT_APP_PASSCODE='admin' -REACT_APP_CRED_ID='GaugZJ4PXj9uvRp2wW1oi5:3:CL:5753:vaxdemo03' \ No newline at end of file +REACT_APP_CRED_ID='GaugZJ4PXj9uvRp2wW1oi5:3:CL:5760:vaxdemo05' \ No newline at end of file diff --git a/src/components/ProofForm.js b/src/components/ProofForm.js index 177bb17..96cdc5a 100644 --- a/src/components/ProofForm.js +++ b/src/components/ProofForm.js @@ -8,7 +8,7 @@ export default function ProofForm(props) { dob, nationality, doctype, - docID, + doc_id, vacName, manufacturer, batch, @@ -78,11 +78,11 @@ export default function ProofForm(props) { */} - diff --git a/src/components/VaccinationForm.js b/src/components/VaccinationForm.js index ff0e340..bc3b956 100644 --- a/src/components/VaccinationForm.js +++ b/src/components/VaccinationForm.js @@ -13,7 +13,7 @@ const VaccinationForm = () => { const [dob, setDob] = useState('1990-02-21') const [nationality, setNationality] = useState('Pakistani') const [doctype, setDocType] = useState('Passport') - const [docID, setDocID] = useState('CV-' + randomString(8).toUpperCase()) + const [doc_id, setDocID] = useState('CV-' + randomString(8).toUpperCase()) const [vacName, setVacName] = useState('SARS-CoV2') const [manufacturer, setManufacturer] = useState('Moderna') @@ -35,7 +35,7 @@ const VaccinationForm = () => { dob === '' | nationality === '' | doctype === '' | - docID === '' | dose === '' | batch === '' | validTill === '' | vacName === '' | + doc_id === '' | dose === '' | batch === '' | validTill === '' | vacName === '' | manufacturer === '' | unit === '' | nextBoosterDate === '' | @@ -66,7 +66,7 @@ const VaccinationForm = () => { dob: dob, nationality: nationality, doctype: doctype, - docID: docID, + doc_id: doc_id, vacName: vacName, manufacturer: manufacturer, batch: batch, @@ -142,7 +142,7 @@ const VaccinationForm = () => { - setDocID(e.target.value)} placeholder="CV123456789" value={docID} /> + setDocID(e.target.value)} placeholder="CV123456789" value={doc_id} /> diff --git a/src/containers/QRContainer.js b/src/containers/QRContainer.js index eab07fc..29d816c 100644 --- a/src/containers/QRContainer.js +++ b/src/containers/QRContainer.js @@ -66,7 +66,7 @@ function QRContainer(props) { // }, // body: JSON.stringify({ // "support_revocation": false, - // "tag": props.location.state.data.docID, + // "tag": props.location.state.data.doc_id, // "schema_id": `${GET_SCHEMA_ID()}`, // }) // }).then(resp => resp.json().then((data => issueCredential(data.credential_definition_id)))) @@ -172,8 +172,8 @@ function QRContainer(props) { "value": props.location.state.data.doctype }, { - "name": "docID", - "value": props.location.state.data.docID + "name": "doc_id", + "value": props.location.state.data.doc_id } ] }