fix type of the raw claim sent
This commit is contained in:
@@ -95,11 +95,7 @@ export default class ClaimAddRawView extends Vue {
|
|||||||
|
|
||||||
// similar code is found in ProjectViewView
|
// similar code is found in ProjectViewView
|
||||||
async submitClaim() {
|
async submitClaim() {
|
||||||
const fullClaim: serverUtil.GenericVerifiableCredential = {
|
const fullClaim = JSON.parse(this.claimStr);
|
||||||
"@context": "https://schema.org",
|
|
||||||
"@type": "AgreeAction",
|
|
||||||
object: JSON.parse(this.claimStr),
|
|
||||||
};
|
|
||||||
const result = await serverUtil.createAndSubmitClaim(
|
const result = await serverUtil.createAndSubmitClaim(
|
||||||
fullClaim,
|
fullClaim,
|
||||||
await this.getIdentity(this.activeDid),
|
await this.getIdentity(this.activeDid),
|
||||||
|
|||||||
@@ -319,7 +319,6 @@ export default class GiftedDetails extends Vue {
|
|||||||
this.axios,
|
this.axios,
|
||||||
this.apiServer,
|
this.apiServer,
|
||||||
);
|
);
|
||||||
console.log("Got project name from cache", project);
|
|
||||||
this.projectName = project?.name
|
this.projectName = project?.name
|
||||||
? "the project: " + project.name
|
? "the project: " + project.name
|
||||||
: "a project";
|
: "a project";
|
||||||
|
|||||||
Reference in New Issue
Block a user