diff --git a/src/lib/account.js b/src/lib/account.js index 37c5eb02..92d0345d 100644 --- a/src/lib/account.js +++ b/src/lib/account.js @@ -148,14 +148,12 @@ export function getCategorizedAccountsWithVisibleCount(categorizedAccounts) { for (let j = 0; j < allAccounts.length; j++) { const account = allAccounts[j]; - if (account.hidden) { - continue; - } + if (!account.hidden) { + allVisibleAccountCount++; - allVisibleAccountCount++; - - if (firstVisibleAccountIndex === -1) { - firstVisibleAccountIndex = j; + if (firstVisibleAccountIndex === -1) { + firstVisibleAccountIndex = j; + } } if (account.type === accountConstants.allAccountTypes.MultiSubAccounts && account.subAccounts) { @@ -199,8 +197,6 @@ export function getCategorizedAccountsWithVisibleCount(categorizedAccounts) { } } - console.log(ret) - return ret; } diff --git a/src/views/desktop/common/cards/AccountFilterSettingsCard.vue b/src/views/desktop/common/cards/AccountFilterSettingsCard.vue index 8e789b69..eae0f06a 100644 --- a/src/views/desktop/common/cards/AccountFilterSettingsCard.vue +++ b/src/views/desktop/common/cards/AccountFilterSettingsCard.vue @@ -65,11 +65,11 @@ :key="itemIdx" v-for="itemIdx in [ 1, 2, 3 ]"> - + {{ $t('No available account') }} - +