Skip to content

Commit

Permalink
fix: only reference loans if there are loans in the basket
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Nov 27, 2023
1 parent c5c8261 commit cb722b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Checkout/DonationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit cb722b7

Please sign in to comment.