From c13716f47b30bce613c815e9cb33356e0807a091 Mon Sep 17 00:00:00 2001 From: Iago Espinoza Date: Thu, 9 Jan 2025 15:06:02 -0300 Subject: [PATCH] Update react/Notices.tsx --- react/Notices.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/react/Notices.tsx b/react/Notices.tsx index 3b6fc108..ab0410bb 100644 --- a/react/Notices.tsx +++ b/react/Notices.tsx @@ -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[]) => {