From d88e21d77f264e3a3b72e449fb96d3769bdbcc92 Mon Sep 17 00:00:00 2001 From: Felix van Hove Date: Sun, 2 Mar 2025 22:59:18 +0100 Subject: [PATCH] fix: Make View Guarantors work even if no summary is sent by Fineract (#2287) This makes the View Guarantors work even if no Loan summary property is sent in the Fineract response. (This is naturally the case when the status of the Loan is not active.) This also guarantees the page is rendered without errors in case no clientRelationshipType is configured for the guarantor, which is possible. FIXES: WEB-22 --- .../view-guarantors/view-guarantors.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html index 614f4d5bf..bfb8c4efe 100644 --- a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html +++ b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html @@ -62,8 +62,8 @@ {{ 'labels.inputs.Arrears By' | translate }} - {{ dataObject.summary.totalOverdue | formatNumber }} - {{ 'labels.inputs.Not Provided' | translate }} + {{ dataObject.summary?.totalOverdue | formatNumber }} + {{ 'labels.inputs.Not Provided' | translate }} @@ -106,7 +106,7 @@ {{ 'labels.inputs.Relationship' | translate }} - {{ guarantor.clientRelationshipType.name }} + {{ guarantor.clientRelationshipType?.name }}