code refactor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user