Add guards (#486)
This commit is contained in:
parent
147f0162b7
commit
572bfc59b8
@ -261,7 +261,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
||||
}: OrderModel): void {
|
||||
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
||||
data: {
|
||||
accounts: this.user.accounts.filter((account) => {
|
||||
accounts: this.user?.accounts?.filter((account) => {
|
||||
return account.accountType === 'SECURITIES';
|
||||
}),
|
||||
transaction: {
|
||||
@ -346,7 +346,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
||||
private openCreateTransactionDialog(aTransaction?: OrderModel): void {
|
||||
const dialogRef = this.dialog.open(CreateOrUpdateTransactionDialog, {
|
||||
data: {
|
||||
accounts: this.user.accounts.filter((account) => {
|
||||
accounts: this.user?.accounts?.filter((account) => {
|
||||
return account.accountType === 'SECURITIES';
|
||||
}),
|
||||
transaction: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user