diff --git a/src/app/loans/loans-routing.module.ts b/src/app/loans/loans-routing.module.ts index d21e3dd94d..9ca80447d5 100644 --- a/src/app/loans/loans-routing.module.ts +++ b/src/app/loans/loans-routing.module.ts @@ -302,7 +302,8 @@ const routes: Routes = [ component: LoanAccountActionsComponent, data: { title: 'Loan Account Actions', breadcrumb: 'action', routeParamBreadcrumb: 'action' }, resolve: { - actionButtonData: LoanActionButtonResolver + actionButtonData: LoanActionButtonResolver, + loanDetailsData: LoanDetailsResolver } }, { diff --git a/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.ts b/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.ts index 7a0100d6b9..cd1e3ab487 100644 --- a/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.ts @@ -89,8 +89,9 @@ export class LoanAccountActionsComponent { * @param route Activated Route. */ constructor(private route: ActivatedRoute) { - this.route.data.subscribe(( data: { actionButtonData: any }) => { + this.route.data.subscribe(( data: { actionButtonData: any, loanDetailsData: any }) => { this.actionButtonData = data.actionButtonData; + this.actionButtonData.currency = data.loanDetailsData.currency; }); this.route.params.subscribe(params => {