From 1b44dbd857f7850a0c8ada5516dc3ef45238dd51 Mon Sep 17 00:00:00 2001 From: G Date: Thu, 13 Jun 2024 10:16:48 +0000 Subject: [PATCH] reverse the response since the backend does not do it yet. add a todo to remind me to change this later --- src/utils/requests/transactions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/requests/transactions.ts b/src/utils/requests/transactions.ts index b3f9253..aef0ef7 100644 --- a/src/utils/requests/transactions.ts +++ b/src/utils/requests/transactions.ts @@ -41,7 +41,8 @@ export const getTransactionsHistory = async (): Promise => { log.http("getTransactionsHistory |", JSON.stringify(response, null, 2)); - return response; + // TODO: Update this when the api is fixed, response should not be reversed + return response.reverse(); } catch (error) { log.error("getTransactionsHistory |", error); throw error; -- libgit2 0.27.1