More bullet-proofing - reject surrounding promise if save() fails
FREEBIE
This commit is contained in:
		
					parent
					
						
							
								1eb450ca35
							
						
					
				
			
			
				commit
				
					
						4f90cefd4f
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -457,7 +457,7 @@
 | 
			
		|||
                            nonblockingApproval : nonblockingApproval,
 | 
			
		||||
                        }).then(function() {
 | 
			
		||||
                            resolve(false);
 | 
			
		||||
                        });
 | 
			
		||||
                        }, reject);
 | 
			
		||||
                    } else if (!equalArrayBuffers(oldpublicKey, publicKey)) {
 | 
			
		||||
                        console.log("Replacing existing identity...");
 | 
			
		||||
                        var previousStatus = identityRecord.get('verified');
 | 
			
		||||
| 
						 | 
				
			
			@ -486,7 +486,7 @@
 | 
			
		|||
                            nonblockingApproval : nonblockingApproval,
 | 
			
		||||
                        }).then(function() {
 | 
			
		||||
                            resolve(false);
 | 
			
		||||
                        });
 | 
			
		||||
                        }, reject);
 | 
			
		||||
                    } else {
 | 
			
		||||
                        resolve(false);
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue