Skip to content

Commit

Permalink
fix: get teamId
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Jan 8, 2024
1 parent 48c919b commit 815218c
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/pages/Thanks/ThanksPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,11 @@ export default {
showFtdMessage() {
return this.isFirstLoan && this.isFtdMessageEnable && this.ftdCreditAmount;
},
defaultLoanTeamId() {
return this.loans[this.loans.length - 1]?.team?.id ?? null;
},
defaultLenderTeamId() {
teamId() {
const teamsIds = this.loans
.filter(loan => loan?.team?.id)
.filter(loan => !!loan?.team?.id)
.map(loan => loan.team.id) ?? [];
// return this.lender?.teams?.find(team => teamsIds.includes(team.id)) ?? null;
return 94;
},
teamId() {
return this.defaultLenderTeamId ?? this.defaultLoanTeamId;
return teamsIds?.[0] ?? null;
},
},
created() {
Expand Down

0 comments on commit 815218c

Please sign in to comment.