Skip to content

Commit

Permalink
fix: Loan disbursement action is not being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alberto Hernandez authored and alberto-art3ch committed Jun 12, 2024
1 parent 43c65b5 commit 52da1f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/loans/loans-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 52da1f5

Please sign in to comment.