Skip to content

Commit

Permalink
feat: loan tags test code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Oct 19, 2023
1 parent 753b6d4 commit 6caacdf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ export default {
type: Boolean,
default: true
},
enableLoanTags: {
type: Boolean,
default: false
},
enableFiveDollarsNotes: {
type: Boolean,
default: false
Expand Down
6 changes: 0 additions & 6 deletions src/pages/Lend/LoanChannelCategoryControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
:loans="helpMeChooseLoans"
@update="getHelpMeChooseLoans($event)"
:is-loading="isLoadingHC"
:enable-loan-tags="enableLoanTags"
:enable-five-dollars-notes="enableFiveDollarsNotes"
/>
</div>
Expand Down Expand Up @@ -123,7 +122,6 @@
:loans="helpMeChooseLoans"
@update="getHelpMeChooseLoans($event)"
:is-loading="isLoadingHC"
:enable-loan-tags="enableLoanTags"
:enable-five-dollars-notes="enableFiveDollarsNotes"
/>
</div>
Expand Down Expand Up @@ -261,10 +259,6 @@ export default {
};
},
props: {
enableLoanTags: {
type: Boolean,
default: false
},
enableFiveDollarsNotes: {
type: Boolean,
default: false
Expand Down
24 changes: 2 additions & 22 deletions src/pages/Lend/LoanChannelCategoryPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
:gray-background="pageLayout === 'control'"
>
<loan-channel-category-control
:enable-loan-tags="enableLoanTags"
:enable-five-dollars-notes="enableFiveDollarsNotes"
/>

Expand Down Expand Up @@ -65,10 +64,8 @@ export default {
return Promise.reject({ path: `/lend-category-beta/${category}`, query });
}
return Promise.all([
client.query({ query: experimentAssignmentQuery, variables: { id: 'loan_tags' } }),
client.query({ query: experimentAssignmentQuery, variables: { id: FIVE_DOLLARS_NOTES_EXP } }),
]);
// eslint-disable-next-line max-len
return client.query({ query: experimentAssignmentQuery, variables: { id: FIVE_DOLLARS_NOTES_EXP } });
});
}
},
Expand All @@ -80,9 +77,6 @@ export default {
// Add to Basket Interstitial
this.initializeAddToBasketInterstitial();
// Initialize Loan Tags Experiment
this.initializeLoanTags();
this.initializeFiveDollarsNotes();
},
mounted() {
Expand All @@ -97,20 +91,6 @@ export default {
}
},
methods: {
initializeLoanTags() {
const loanTagsExperiment = this.apollo.readFragment({
id: 'Experiment:loan_tags',
fragment: experimentVersionFragment,
}) || {};
this.enableLoanTags = loanTagsExperiment.version === 'b';
if (loanTagsExperiment.version) {
this.$kvTrackEvent(
'Lending',
'EXP-CORE-792-Oct2022',
loanTagsExperiment.version
);
}
},
initializeAddToBasketInterstitial() {
this.apollo.mutate({
mutation: updateAddToBasketInterstitial,
Expand Down

0 comments on commit 6caacdf

Please sign in to comment.