Skip to content

Commit

Permalink
fix: definition of completed loans
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bedon committed Oct 2, 2024
1 parent 8a1ba24 commit b730d3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/MyKiva/BorrowerCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ import {
} from 'vue';
import {
PAYING_BACK,
REFUNDED,
ENDED,
DEFAULTED
} from '#src/api/fixtures/LoanStatusEnum';
import BorrowerStatusCard from './BorrowerStatusCard';
Expand Down Expand Up @@ -190,7 +191,7 @@ const singleSlideWidth = computed(() => {
});
const hasCompletedBorrowers = computed(() => {
return loans.value.some(loan => loan?.status === REFUNDED);
return loans.value.some(loan => loan?.status === ENDED || loan?.status === DEFAULTED);
});
onMounted(() => {
Expand Down

0 comments on commit b730d3b

Please sign in to comment.