diff --git a/src/pages/LoanFinding/LoanFinding.vue b/src/pages/LoanFinding/LoanFinding.vue index fe5be56c67..e74c8bf461 100644 --- a/src/pages/LoanFinding/LoanFinding.vue +++ b/src/pages/LoanFinding/LoanFinding.vue @@ -455,6 +455,16 @@ export default { } }, created() { + const loanRecommendationsData = trackExperimentVersion( + this.apollo, + this.$kvTrackEvent, + 'Lending', + LOAN_RECOMMENDATIONS_EXP_KEY, + 'EXP-DSCI-2167-Dec2024' + ); + + this.enableLoanRecommendations = loanRecommendationsData.version === 'b'; + const cachedUserInfo = this.apollo.readQuery({ query: userInfoQuery, }); @@ -462,7 +472,6 @@ export default { this.userInfo = cachedUserInfo.my?.userAccount ?? {}; let cachedRecommendedLoans = []; - if (this.enableLoanRecommendations) { const recommendedLoansData = this.apollo.readQuery({ query: loanRecommendationsQueryExtended, @@ -521,15 +530,6 @@ export default { ); this.enableAlmostFundedRow = almostFundedRowTestData.version === 'b'; - const loanRecommendationsData = trackExperimentVersion( - this.apollo, - this.$kvTrackEvent, - 'Lending', - LOAN_RECOMMENDATIONS_EXP_KEY, - 'EXP-DSCI-2167-Dec2024' - ); - this.enableLoanRecommendations = loanRecommendationsData.version === 'b'; - this.firstRowLoans = [ ...cachedRecommendedLoans, { id: 0 }, { id: 0 },