File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ const VALID_LOAN_STATUS = [
205
205
];
206
206
207
207
const activeLoans = computed (() => {
208
- return loans .value .filter (l => VALID_LOAN_STATUS .includes (l? .status ) || l ? . delinquent );
208
+ return loans .value .filter (l => VALID_LOAN_STATUS .includes (l? .status ));
209
209
});
210
210
211
211
const hasActiveLoans = computed (() => activeLoans .value .length > 0 );
@@ -219,7 +219,7 @@ const title = computed(() => {
219
219
220
220
const filteredLoans = computed (() => {
221
221
return loans .value .filter (loan => VALID_LOAN_STATUS
222
- .includes (loan? .status ) || loan ? . delinquent ).slice (0 , props .cardsNumber );
222
+ .includes (loan? .status )).slice (0 , props .cardsNumber );
223
223
});
224
224
225
225
const inPfp = computed (() => sharedLoan .value ? .inPfp ?? false );
Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ const title = computed(() => `${borrowerName.value} in ${borrowerCountry.value}`
213
213
const loanUse = computed (() => loan .value ? .use ?? ' ' );
214
214
215
215
const isFundraising = computed (() => loan .value ? .status === FUNDRAISING );
216
- const isPayingBackDelinquent = computed (() => loan .value ? .status === PAYING_BACK && loan .value ? .delinquent );
217
216
218
217
const showWhatIsNextColumn = computed (() => {
219
218
return ! ([REFUNDED , EXPIRED , ENDED ].includes (loan .value ? .status ));
@@ -226,8 +225,8 @@ const stepsCopy = computed(() => {
226
225
return ' What’s next?' ;
227
226
});
228
227
229
- const getPrintableStatus = status => {
230
- switch (status) {
228
+ const loanStatus = computed (() => {
229
+ switch (loan . value ? . status ) {
231
230
case FUNDRAISING :
232
231
return ' Fundraising' ;
233
232
case FUNDED :
@@ -243,13 +242,6 @@ const getPrintableStatus = status => {
243
242
default:
244
243
return ' Repaid' ;
245
244
}
246
- };
247
-
248
- const loanStatus = computed (() => {
249
- if (isPayingBackDelinquent .value ) {
250
- return ' Repaying' ;
251
- }
252
- return getPrintableStatus (loan .value ? .status );
253
245
});
254
246
255
247
const description = computed (() => {
You can’t perform that action at this time.
0 commit comments