Skip to content

Commit

Permalink
fix: firstLoan condition was false in guest checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Jun 20, 2024
1 parent 1faa8f0 commit 9482147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Thanks/ThanksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export default {
userHasDepositBefore(hasDepositBefore);
const totalLoans = data?.my?.loans?.totalCount ?? 0;
const isFirstLoan = this.loans.length && totalLoans === this.loans.length;
const isFirstLoan = this.loans.length && (totalLoans === this.loans.length || this.isGuest);
this.isFirstLoan = isFirstLoan;
const hasDirectLoan = this.loans.findIndex(loan => loan.distributionModel === 'direct') > -1;
const hasCoreLoan = this.loans.findIndex(loan => loan.distributionModel === 'fieldPartner') > -1;
Expand Down

0 comments on commit 9482147

Please sign in to comment.