show total balance of parent account in mobile version (#149)

This commit is contained in:
MaysWind
2025-06-07 14:11:55 +08:00
parent 881a9c122a
commit 70eea8ff33
5 changed files with 59 additions and 48 deletions
+1 -1
View File
@@ -633,7 +633,7 @@ export const useAccountsStore = defineStore('accounts', () => {
}
}
function getAccountSubAccountBalance(showAccountBalance: boolean, showHidden: boolean, account: Account, subAccountId: string): AccountDisplayBalance | null {
function getAccountSubAccountBalance(showAccountBalance: boolean, showHidden: boolean, account: Account, subAccountId?: string): AccountDisplayBalance | null {
if (account.type !== AccountType.MultiSubAccounts.type) {
return null;
}