From ca91dafe1266580bfedeb791f47b8e8b6cc1d94c Mon Sep 17 00:00:00 2001 From: Christian Bedon Date: Wed, 20 Dec 2023 15:38:20 -0500 Subject: [PATCH] refactor: use loan declaration for lentTo variable --- src/pages/BorrowerProfile/BorrowerProfile.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/BorrowerProfile/BorrowerProfile.vue b/src/pages/BorrowerProfile/BorrowerProfile.vue index 8c42b05f87..aba9c978ea 100644 --- a/src/pages/BorrowerProfile/BorrowerProfile.vue +++ b/src/pages/BorrowerProfile/BorrowerProfile.vue @@ -463,7 +463,7 @@ export default { const loanStatusAllowed = ALLOWED_LOAN_STATUSES.indexOf(loan?.status) !== -1; let redirectToLendClasic = loan === null || loan === 'undefined' || !loanStatusAllowed; // Evaluate if lender should be redirected to lend classic MARS-358 - const lentTo = data?.lend?.loan?.userProperties?.lentTo ?? false; + const lentTo = loan?.userProperties?.lentTo ?? false; if (lentTo && !redirectToLendClasic) { const loanAmount = loan?.loanAmount ?? '0'; const fundedAmount = loan?.loanFundraisingInfo?.fundedAmount ?? '0';