diff --git a/src/pages/Thanks/ThanksPage.vue b/src/pages/Thanks/ThanksPage.vue index 1c0c8aaaca..d6ce661cb5 100644 --- a/src/pages/Thanks/ThanksPage.vue +++ b/src/pages/Thanks/ThanksPage.vue @@ -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() {