mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-20 13:34:30 +01:00
chore: fix filtering bug
This commit is contained in:
parent
c5179274ef
commit
cef7a65ea5
1 changed files with 6 additions and 5 deletions
|
@ -97,11 +97,12 @@ export const getResume = {
|
|||
new Date(lastInvoiceDate),
|
||||
new Date(payment.date),
|
||||
) === 1;
|
||||
const first =
|
||||
compareDesc(
|
||||
new Date(payment.date),
|
||||
new Date(firstInvoiceDate),
|
||||
) === 1;
|
||||
const first = params.token
|
||||
? compareDesc(
|
||||
new Date(payment.date),
|
||||
new Date(firstInvoiceDate),
|
||||
) === 1
|
||||
: true;
|
||||
return last && first;
|
||||
})
|
||||
: payments;
|
||||
|
|
Loading…
Add table
Reference in a new issue