File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/app/core/shell/breadcrumb Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 ) +
You can’t perform that action at this time.
0 commit comments