Skip to content

Commit ca931ac

Browse files
authored
WEB-92 Click on GSIM application in GSIM application list causes Javascript error (#2668)
1 parent 415eb73 commit ca931ac

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/app/core/shell/breadcrumb/breadcrumb.component.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ export class BreadcrumbComponent implements AfterViewInit {
141141
routeData.loanDetailsData.accountNo +
142142
')';
143143
} else if (routeData.breadcrumb === 'Savings') {
144-
breadcrumbLabel =
145-
this.printableValue(routeData.savingsAccountData.savingsProductName) +
146-
' (' +
147-
routeData.savingsAccountData.accountNo +
148-
')';
144+
const savingsProductName = routeData.savingsAccountData?.savingsProductName ?? '';
145+
const accountNo = routeData.savingsAccountData?.accountNo ?? '';
146+
breadcrumbLabel = this.printableValue(savingsProductName) + (accountNo ? ' (' + accountNo + ')' : '');
149147
} else if (routeData.breadcrumb === 'Fixed Deposits') {
150148
breadcrumbLabel =
151149
this.printableValue(routeData.fixedDepositsAccountData.depositProductName) +

0 commit comments

Comments
 (0)