|  |  | @ -172,17 +172,16 @@ export default class IdentitySwitcherView extends Vue { | 
			
		
	
		
			
				
					|  |  |  |     if (did === "0") { | 
			
		
	
		
			
				
					|  |  |  |       did = undefined; | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |     const platformService = PlatformServiceFactory.getInstance(); | 
			
		
	
		
			
				
					|  |  |  |     await platformService.dbExec( | 
			
		
	
		
			
				
					|  |  |  |       `UPDATE settings SET activeDid = ? WHERE id = ?`, | 
			
		
	
		
			
				
					|  |  |  |       [did ?? "", MASTER_SETTINGS_KEY], | 
			
		
	
		
			
				
					|  |  |  |     ); | 
			
		
	
		
			
				
					|  |  |  |     if (USE_DEXIE_DB) { | 
			
		
	
		
			
				
					|  |  |  |       await db.open(); | 
			
		
	
		
			
				
					|  |  |  |       await db.settings.update(MASTER_SETTINGS_KEY, { | 
			
		
	
		
			
				
					|  |  |  |         activeDid: did ?? "", | 
			
		
	
		
			
				
					|  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |     } else { | 
			
		
	
		
			
				
					|  |  |  |       const platformService = PlatformServiceFactory.getInstance(); | 
			
		
	
		
			
				
					|  |  |  |       await platformService.dbExec( | 
			
		
	
		
			
				
					|  |  |  |         `UPDATE settings SET activeDid = ? WHERE id = ?`, | 
			
		
	
		
			
				
					|  |  |  |         [did ?? "", MASTER_SETTINGS_KEY], | 
			
		
	
		
			
				
					|  |  |  |       ); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |     this.$router.push({ name: "account" }); | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
	
		
			
				
					|  |  | 
 |