diff --git a/src/hooks/useTransactionsHistory.tsx b/src/hooks/useTransactionsHistory.tsx index 8516c99..4420008 100644 --- a/src/hooks/useTransactionsHistory.tsx +++ b/src/hooks/useTransactionsHistory.tsx @@ -18,7 +18,10 @@ const useTransactionsHistory = () => { const filterByReference = useCallback( (reference: string) => { if (!data?.length) return []; - return data.filter((transaction) => transaction.reference.includes(reference)); + // TODO: Update this when the api is fixed + const reversed = data.reverse(); + + return reversed.filter((transaction) => transaction.reference.includes(reference)); }, [data], );