|
|
@ -92,9 +92,9 @@ export class CreateOrUpdateActivityDialog implements OnDestroy { |
|
|
|
|
|
|
|
this.activityForm = this.formBuilder.group({ |
|
|
|
accountId: [ |
|
|
|
!!this.data.activity?.accountId || this.data.accounts.length !== 1 |
|
|
|
? this.data.activity?.accountId |
|
|
|
: this.data.accounts[0].id, |
|
|
|
this.data.accounts.length === 1 && !this.data.activity?.accountId |
|
|
|
? this.data.accounts[0].id |
|
|
|
: this.data.activity?.accountId, |
|
|
|
Validators.required |
|
|
|
], |
|
|
|
assetClass: [this.data.activity?.SymbolProfile?.assetClass], |
|
|
|