| 
						
						
							
								
							
						
						
					 | 
					@ -188,7 +188,7 @@ export default class NewEditProjectView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .where("did") | 
					 | 
					 | 
					      .where("did") | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .equals(activeDid) | 
					 | 
					 | 
					      .equals(activeDid) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .first(); | 
					 | 
					 | 
					      .first(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const identity = JSON.parse(account?.identity || "null"); | 
					 | 
					 | 
					    const identity = JSON.parse((account?.identity as string) || "null"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (!identity) { | 
					 | 
					 | 
					    if (!identity) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      throw new Error( | 
					 | 
					 | 
					      throw new Error( | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -210,8 +210,8 @@ export default class NewEditProjectView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  async created() { | 
					 | 
					 | 
					  async created() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    await db.open(); | 
					 | 
					 | 
					    await db.open(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    const settings = await db.settings.get(MASTER_SETTINGS_KEY); | 
					 | 
					 | 
					    const settings = await db.settings.get(MASTER_SETTINGS_KEY); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    this.activeDid = settings?.activeDid || ""; | 
					 | 
					 | 
					    this.activeDid = (settings?.activeDid as string) || ""; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					    this.apiServer = settings?.apiServer || ""; | 
					 | 
					 | 
					    this.apiServer = (settings?.apiServer as string) || ""; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (this.projectId) { | 
					 | 
					 | 
					    if (this.projectId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      if (this.numAccounts === 0) { | 
					 | 
					 | 
					      if (this.numAccounts === 0) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -341,7 +341,9 @@ export default class NewEditProjectView extends Vue { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (serverError) { | 
					 | 
					 | 
					        if (serverError) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          console.error("Got error from server", serverError); | 
					 | 
					 | 
					          console.error("Got error from server", serverError); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          if (Object.prototype.hasOwnProperty.call(serverError, "message")) { | 
					 | 
					 | 
					          if (Object.prototype.hasOwnProperty.call(serverError, "message")) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            userMessage = serverError.response?.data?.error?.message || ""; // This is info for the user. | 
					 | 
					 | 
					            userMessage = | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              (serverError.response?.data?.error?.message as string) || | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              userMessage; // This is info for the user. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            this.$notify( | 
					 | 
					 | 
					            this.$notify( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              { | 
					 | 
					 | 
					              { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                group: "alert", | 
					 | 
					 | 
					                group: "alert", | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |