|
|
@ -261,7 +261,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
|
|
|
}: OrderModel): void {
|
|
|
|
}: OrderModel): void {
|
|
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
|
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
accounts: this.user.accounts.filter((account) => {
|
|
|
|
accounts: this.user?.accounts?.filter((account) => {
|
|
|
|
return account.accountType === 'SECURITIES';
|
|
|
|
return account.accountType === 'SECURITIES';
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
transaction: {
|
|
|
|
transaction: {
|
|
|
@ -346,7 +346,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
|
|
|
private openCreateTransactionDialog(aTransaction?: OrderModel): void {
|
|
|
|
private openCreateTransactionDialog(aTransaction?: OrderModel): void {
|
|
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
|
|
|
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
accounts: this.user.accounts.filter((account) => {
|
|
|
|
accounts: this.user?.accounts?.filter((account) => {
|
|
|
|
return account.accountType === 'SECURITIES';
|
|
|
|
return account.accountType === 'SECURITIES';
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
transaction: {
|
|
|
|
transaction: {
|
|
|
|