From a31c765b3d564a4736dac0b3c4d7b70f0598bb36 Mon Sep 17 00:00:00 2001 From: Christian Bedon Date: Mon, 18 Nov 2024 19:29:58 -0500 Subject: [PATCH 1/2] feat: filter loans in carousel by status --- src/components/MyKiva/BorrowerCarousel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MyKiva/BorrowerCarousel.vue b/src/components/MyKiva/BorrowerCarousel.vue index f353c80096..23d498bd1f 100644 --- a/src/components/MyKiva/BorrowerCarousel.vue +++ b/src/components/MyKiva/BorrowerCarousel.vue @@ -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(() => { From d01f96fd37fa6e35544a5fc4a712862bce0c96fd Mon Sep 17 00:00:00 2001 From: Christian Bedon Date: Tue, 19 Nov 2024 13:48:38 -0500 Subject: [PATCH 2/2] feat: increase limit in my kiva query to ensure 9 loans in carousel --- src/graphql/query/myKiva.graphql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql/query/myKiva.graphql b/src/graphql/query/myKiva.graphql index 1c4a486172..62ec901690 100644 --- a/src/graphql/query/myKiva.graphql +++ b/src/graphql/query/myKiva.graphql @@ -2,7 +2,7 @@ query myKivaQuery { my { id isBorrower - loans(limit: 10) { + loans(limit: 50) { totalCount values { id