diff --git a/CHANGELOG.md b/CHANGELOG.md index 51daf63b8b..dfef71271b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the server of the Model Context Protocol (MCP) (experimental) +### Fixed + +- Fixed the loading state of the accounts table on the accounts page + ## 3.65.0 - 2026-08-31 ### Added diff --git a/apps/client/src/app/pages/accounts/accounts-page.html b/apps/client/src/app/pages/accounts/accounts-page.html index e3f625ac1b..55a8f65345 100644 --- a/apps/client/src/app/pages/accounts/accounts-page.html +++ b/apps/client/src/app/pages/accounts/accounts-page.html @@ -3,7 +3,7 @@

Accounts

(); + public readonly accounts = input.required(); public readonly activitiesCount = input(); public readonly baseCurrency = input(); public readonly hasPermissionToDeleteAccount = input(); @@ -159,7 +159,7 @@ export class GfAccountsTableComponent { // Reactive data update effect(() => { - this.dataSource.data = this.accounts(); + this.dataSource.data = this.accounts() ?? []; }); // Reactive view connection diff --git a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts index b50f89a8eb..9a215ee5b3 100644 --- a/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts +++ b/libs/ui/src/lib/portfolio-proportion-chart/portfolio-proportion-chart.component.ts @@ -397,11 +397,13 @@ export class GfPortfolioProportionChartComponent context.dataIndex ] as string; - return value > 0 - ? isUUID(symbol) - ? (this.data[symbol]?.name ?? symbol) - : symbol - : ''; + if (value <= 0) { + return ''; + } + + return isUUID(symbol) + ? (this.data[symbol]?.name ?? symbol) + : symbol; }, offset: 8 }