Skip to content

Commit

Permalink
Update react/Notices.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
iago1501 authored Jan 9, 2025
1 parent 1e596d6 commit c13716f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions react/Notices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ const Notices: FC = () => {
const hasBankInvoiceA = a.payments.some((p) => p.group === 'bankInvoice')
const hasBankInvoiceB = b.payments.some((p) => p.group === 'bankInvoice')

if (hasBankInvoiceA !== hasBankInvoiceB) {
if (hasBankInvoiceA) {
return -1
}

if (hasBankInvoiceB) {
return 1
}
if (hasBankInvoiceA === hasBankInvoiceB) {
return 0
}

return 0
})

if (hasBankInvoiceA) {
return -1
}

if (hasBankInvoiceB) {
return 1
}

}

const sortPayments = (payments: Payment[]) => {
Expand Down

0 comments on commit c13716f

Please sign in to comment.