diff --git a/src/app/deposits/fixed-deposits/fixed-deposit-account-view/transactions-tab/transactions-tab.component.ts b/src/app/deposits/fixed-deposits/fixed-deposit-account-view/transactions-tab/transactions-tab.component.ts
index 2356a44c5..e3e36f837 100644
--- a/src/app/deposits/fixed-deposits/fixed-deposit-account-view/transactions-tab/transactions-tab.component.ts
+++ b/src/app/deposits/fixed-deposits/fixed-deposit-account-view/transactions-tab/transactions-tab.component.ts
@@ -43,11 +43,13 @@ export class TransactionsTabComponent implements OnInit {
ngOnInit() {
this.hideAccrualsParam = new UntypedFormControl(false);
this.dataSource = new MatTableDataSource(this.transactionsData);
- this.tempTransaction.forEach((element: any) => {
- if (this.isAccrual(element.transactionType)) {
- this.tempTransaction = this.removeItem(this.tempTransaction, element);
- }
- });
+ if (this.tempTransaction) {
+ this.tempTransaction.forEach((element: any) => {
+ if (this.isAccrual(element.transactionType)) {
+ this.tempTransaction = this.removeItem(this.tempTransaction, element);
+ }
+ });
+ }
}
private removeItem(arr: any, item: any) {
diff --git a/src/app/deposits/recurring-deposits/recurring-deposits-account-view/transactions-tab/transactions-tab.component.ts b/src/app/deposits/recurring-deposits/recurring-deposits-account-view/transactions-tab/transactions-tab.component.ts
index b8ffeb674..9681db667 100644
--- a/src/app/deposits/recurring-deposits/recurring-deposits-account-view/transactions-tab/transactions-tab.component.ts
+++ b/src/app/deposits/recurring-deposits/recurring-deposits-account-view/transactions-tab/transactions-tab.component.ts
@@ -43,11 +43,13 @@ export class TransactionsTabComponent implements OnInit {
ngOnInit() {
this.dataSource = new MatTableDataSource(this.transactionsData);
this.hideAccrualsParam = new UntypedFormControl(false);
- this.tempTransaction.forEach((element: any) => {
- if (this.isAccrual(element.transactionType)) {
- this.tempTransaction = this.removeItem(this.tempTransaction, element);
- }
- });
+ if (this.tempTransaction) {
+ this.tempTransaction.forEach((element: any) => {
+ if (this.isAccrual(element.transactionType)) {
+ this.tempTransaction = this.removeItem(this.tempTransaction, element);
+ }
+ });
+ }
}
private removeItem(arr: any, item: any) {
diff --git a/src/app/loans/loans-account-stepper/loans-account-schedule-step/loans-account-schedule-step.component.html b/src/app/loans/loans-account-stepper/loans-account-schedule-step/loans-account-schedule-step.component.html
index 53e6177bf..67decd15a 100644
--- a/src/app/loans/loans-account-stepper/loans-account-schedule-step/loans-account-schedule-step.component.html
+++ b/src/app/loans/loans-account-stepper/loans-account-schedule-step/loans-account-schedule-step.component.html
@@ -1,6 +1,6 @@
-