Skip to content

Commit

Permalink
feat: filter loans in carousel by status
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Nov 19, 2024
1 parent dcf21ed commit a31c765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MyKiva/BorrowerCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const btnEventLabel = computed(() => {
});
const filteredLoans = computed(() => {
return loans.value.slice(0, 9);
return loans.value.filter(loan => [FUNDED, FUNDRAISING, PAYING_BACK, RAISED].includes(loan?.status)).slice(0, 9);
});
const singleSlideWidth = computed(() => {
Expand Down

0 comments on commit a31c765

Please sign in to comment.