code refactor

This commit is contained in:
MaysWind
2025-01-18 23:36:02 +08:00
parent f3b6c1266d
commit f5f8b9a145
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -48,11 +48,11 @@ export class Account implements AccountInfoResponse {
}
}
get hidden(): boolean {
public get hidden(): boolean {
return !this.visible;
}
get subAccounts(): AccountInfoResponse[] | undefined {
public get subAccounts(): AccountInfoResponse[] | undefined {
if (typeof(this.childrenAccounts) === 'undefined') {
return undefined;
}
+2 -2
View File
@@ -33,11 +33,11 @@ export class TransactionCategory implements TransactionCategoryInfoResponse {
}
}
get hidden(): boolean {
public get hidden(): boolean {
return !this.visible;
}
get subCategories(): TransactionCategoryInfoResponse[] | undefined {
public get subCategories(): TransactionCategoryInfoResponse[] | undefined {
if (typeof(this.secondaryCategories) === 'undefined') {
return undefined;
}