From f5f8b9a145d293014e9dfefa019275d1a5165c85 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 18 Jan 2025 23:36:02 +0800 Subject: [PATCH] code refactor --- src/models/account.ts | 4 ++-- src/models/transaction_category.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/account.ts b/src/models/account.ts index 212bf4ef..a7c332e8 100644 --- a/src/models/account.ts +++ b/src/models/account.ts @@ -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; } diff --git a/src/models/transaction_category.ts b/src/models/transaction_category.ts index 8123f077..c0058040 100644 --- a/src/models/transaction_category.ts +++ b/src/models/transaction_category.ts @@ -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; }