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); } }