diff options
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/controllers/edit_credential.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js index b7a11eaf..a4d59214 100644 --- a/js/app/controllers/edit_credential.js +++ b/js/app/controllers/edit_credential.js @@ -385,10 +385,10 @@ var found=false; var credList=$rootScope.vaultCache[$scope.active_vault.guid].credentials; for (var i = 0; i < credList.length; i++) { - if(credList[i].credential_id==credential.credential_id){ + if (credList[i].credential_id === credential.credential_id) { $rootScope.vaultCache[$scope.active_vault.guid].credentials[i]=credential; found=true; - } + } } if(!found){ |