don't calculate account balance which account is hidden

This commit is contained in:
MaysWind
2020-11-18 02:00:54 +08:00
parent 7d0197fe1d
commit 06166c100e
+4
View File
@@ -98,6 +98,10 @@ function getAllFilteredAccountsBalance(categorizedAccounts, accountCategoryFilte
for (let accountIdx = 0; accountIdx < categorizedAccounts[accountCategory.id].length; accountIdx++) {
const account = categorizedAccounts[accountCategory.id][accountIdx];
if (account.hidden) {
continue;
}
if (account.type === accountConstants.allAccountTypes.SingleAccount) {
ret.push({
balance: account.balance,