From cb722b7127582cfe0b42147b64a6f27f822bd8a4 Mon Sep 17 00:00:00 2001 From: Joshua Kiwiet-Pantaleoni Date: Mon, 27 Nov 2023 09:52:21 -0800 Subject: [PATCH] fix: only reference loans if there are loans in the basket --- src/components/Checkout/DonationItem.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Checkout/DonationItem.vue b/src/components/Checkout/DonationItem.vue index 0dfc426c3a..fdc56e22a5 100644 --- a/src/components/Checkout/DonationItem.vue +++ b/src/components/Checkout/DonationItem.vue @@ -300,7 +300,10 @@ export default { return numeral(this.amount).format('$0,0.00'); }, basketDonationHeader() { - return `Help cover the cost of your loan${this.loanCount > 1 ? 's' : ''}`; + if (this.hasLoans) { + return `Help cover the cost of your loan${this.loanCount > 1 ? 's' : ''}`; + } + return 'Donate to Kiva'; }, }, methods: {