diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts index 2157ea5d3..c13a907f9 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts @@ -77,6 +77,12 @@ export class GfCreateOrUpdateAccountDialogComponent { private readonly formBuilder = inject(FormBuilder); private readonly userService = inject(UserService); + protected get selectedPlatform() { + const platform = this.accountForm.get('platformId')?.value; + + return typeof platform === 'string' ? undefined : (platform as Platform); + } + public ngOnInit() { const { currencies } = this.dataService.fetchInfo(); this.currencies = currencies; diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html index 4e4c62b6f..85cd9dcfe 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.html @@ -46,6 +46,14 @@