From 859833ffb1f17ffc0f0b98a79ae7286f72d5666d Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 1 Oct 2019 21:56:11 +0200 Subject: [PATCH] :bug: (Account Item) Sort --- src/services/TransactionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/TransactionService.ts b/src/services/TransactionService.ts index b971f63..6a3df0d 100644 --- a/src/services/TransactionService.ts +++ b/src/services/TransactionService.ts @@ -94,7 +94,7 @@ class TransactionService { > = await couchService.getByPrefix(`tra-${accountId}`) const transactions = response.rows.map((row) => row.doc) as ITransaction[] return transactions.sort((a: ITransaction, b: ITransaction) => - a.date <= b.date ? -1 : 1 + a.date < b.date ? -1 : 1 ) }