Commit 87b9bf7f by G

manually reversing the array while waiting for backend to do that.

parent db5ab177
......@@ -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],
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment