Skip to content

Commit

Permalink
feat: handle incoming instantLending query param to hide kiva card row
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover committed Nov 16, 2021
1 parent a27a5ad commit f42f500
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Checkout/CheckoutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ export default {
}
return false;
},
instantLendingLoanAdded() {
return this.$route?.query?.instantLending === 'loan-added';
},
checkoutSteps() {
return ['Basket', 'Payment', 'Thank You!'];
},
Expand All @@ -493,7 +496,7 @@ export default {
return parseFloat(this.creditNeeded) === 0;
},
showKivaCardForm() {
return this.checkingOutAsGuest === false;
return this.checkingOutAsGuest === false && !this.instantLendingLoanAdded;
},
eligibleForGuestCheckout() {
// Checking if guest checkout is enabled
Expand Down

0 comments on commit f42f500

Please sign in to comment.