Skip to content

Commit

Permalink
refactor: use loan declaration for lentTo variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Dec 20, 2023
1 parent 95c7cd7 commit ca91daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/BorrowerProfile/BorrowerProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit ca91daf

Please sign in to comment.