From e5f8588438558045b79ce9f9ac39b1e1f1f99431 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 22 May 2024 09:58:01 +0000 Subject: [PATCH] log to help debugging, will remove --- src/screens/PaymentAmountInputScreen.tsx | 3 ++- src/utils/axios-request.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/PaymentAmountInputScreen.tsx b/src/screens/PaymentAmountInputScreen.tsx index 9be0c04..c3c8794 100644 --- a/src/screens/PaymentAmountInputScreen.tsx +++ b/src/screens/PaymentAmountInputScreen.tsx @@ -56,9 +56,10 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI ); if (orangeTransactionInitializerMutation.isSuccess) { console.log("initilization was a success"); - transactionsStatusMutation.mutate( + await transactionsStatusMutation.mutateAsync( orangeTransactionInitializerMutation.data.order_id, ); + console.log("result of transactions", transactionsStatusMutation.data); } // console.log("Response transaction", response); diff --git a/src/utils/axios-request.ts b/src/utils/axios-request.ts index c5d499c..2742dd9 100644 --- a/src/utils/axios-request.ts +++ b/src/utils/axios-request.ts @@ -25,6 +25,7 @@ const axiosRequest = async ({...options}) : Promise => { return onSuccess(response.data); } catch (error : any) { console.error("Axios Request Error :: ", error.response.data); + console.log("Axios Request Error :: ", error.response.data); return onError(error); } } -- libgit2 0.27.1