From 0cc6a181deba764d6e09727037171ed0416c8cd9 Mon Sep 17 00:00:00 2001 From: Michelle Inez Date: Mon, 16 Dec 2024 14:00:10 -0800 Subject: [PATCH] fix: debugging with console statements for testing experiment --- src/pages/LoanFinding/LoanFinding.vue | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 },