|  |  | @ -126,8 +126,10 @@ export default class NewEditProjectView extends Vue { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |   async LoadProject(identity: IIdentifier) { | 
			
		
	
		
			
				
					|  |  |  |     const endorserApiServer = AppString.DEFAULT_ENDORSER_API_SERVER; | 
			
		
	
		
			
				
					|  |  |  |     // eslint-disable-next-line prettier/prettier | 
			
		
	
		
			
				
					|  |  |  |     const url = endorserApiServer + "/api/claim/byHandle/" + encodeURIComponent(this.projectId); | 
			
		
	
		
			
				
					|  |  |  |     const url = | 
			
		
	
		
			
				
					|  |  |  |       endorserApiServer + | 
			
		
	
		
			
				
					|  |  |  |       "/api/claim/byHandle/" + | 
			
		
	
		
			
				
					|  |  |  |       encodeURIComponent(this.projectId); | 
			
		
	
		
			
				
					|  |  |  |     const token = await accessToken(identity); | 
			
		
	
		
			
				
					|  |  |  |     const headers = { | 
			
		
	
		
			
				
					|  |  |  |       "Content-Type": "application/json", | 
			
		
	
	
		
			
				
					|  |  | @ -161,7 +163,6 @@ export default class NewEditProjectView extends Vue { | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |     // Make a payload for the claim | 
			
		
	
		
			
				
					|  |  |  |     const vcPayload = { | 
			
		
	
		
			
				
					|  |  |  |       sub: "PlanAction", | 
			
		
	
		
			
				
					|  |  |  |       vc: { | 
			
		
	
		
			
				
					|  |  |  |         "@context": ["https://www.w3.org/2018/credentials/v1"], | 
			
		
	
		
			
				
					|  |  |  |         type: ["VerifiableCredential"], | 
			
		
	
	
		
			
				
					|  |  | @ -169,12 +170,8 @@ export default class NewEditProjectView extends Vue { | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |     }; | 
			
		
	
		
			
				
					|  |  |  |     // create a signature using private key of identity | 
			
		
	
		
			
				
					|  |  |  |     if ( | 
			
		
	
		
			
				
					|  |  |  |       identity.keys[0].privateKeyHex !== "undefined" && | 
			
		
	
		
			
				
					|  |  |  |       identity.keys[0].privateKeyHex !== null | 
			
		
	
		
			
				
					|  |  |  |     ) { | 
			
		
	
		
			
				
					|  |  |  |       // eslint-disable-next-line | 
			
		
	
		
			
				
					|  |  |  |       const privateKeyHex: string = identity.keys[0].privateKeyHex!; | 
			
		
	
		
			
				
					|  |  |  |     if (identity.keys[0].privateKeyHex != null) { | 
			
		
	
		
			
				
					|  |  |  |       const privateKeyHex: string = identity.keys[0].privateKeyHex; | 
			
		
	
		
			
				
					|  |  |  |       const signer = await SimpleSigner(privateKeyHex); | 
			
		
	
		
			
				
					|  |  |  |       const alg = undefined; | 
			
		
	
		
			
				
					|  |  |  |       // create a JWT for the request | 
			
		
	
	
		
			
				
					|  |  | 
 |