diff --git a/src/popup/app/vault/vaultController.js b/src/popup/app/vault/vaultController.js
index a43d1160..f21bc178 100644
--- a/src/popup/app/vault/vaultController.js
+++ b/src/popup/app/vault/vaultController.js
@@ -60,16 +60,16 @@
$rootScope.vaultFolders = decFolders;
$rootScope.vaultLogins = decLogins;
- // compute site count for each folder
+ // compute item count for each folder
for (var i = 0; i < decFolders.length; i++) {
- var siteCount = 0;
+ var itemCount = 0;
for (var j = 0; j < decLogins.length; j++) {
- if (decLogins[j].folderId == decFolders[i].id) {
- siteCount++;
+ if (decLogins[j].folderId === decFolders[i].id) {
+ itemCount++;
}
}
- $rootScope.vaultFolders[i].siteCount = siteCount;
+ $rootScope.vaultFolders[i].itemCount = itemCount;
}
if (!delayLoad) {
diff --git a/src/popup/app/vault/views/vault.html b/src/popup/app/vault/views/vault.html
index d2ac1c5a..aac7d0d6 100644
--- a/src/popup/app/vault/views/vault.html
+++ b/src/popup/app/vault/views/vault.html
@@ -18,7 +18,7 @@
ng-repeat="folder in vaultFolders | orderBy: folderSort">
{{folder.name}}
- {{folder.siteCount}}
+ {{folder.itemCount}}