diff --git a/src/screens/PaymentAmountInputScreen.tsx b/src/screens/PaymentAmountInputScreen.tsx index 3aeb91e..507d029 100644 --- a/src/screens/PaymentAmountInputScreen.tsx +++ b/src/screens/PaymentAmountInputScreen.tsx @@ -65,7 +65,7 @@ const PaymentAmountInputScreen: PaymentStackScreenComponentProps<"paymentAmountI log.info("result of transactions", JSON.stringify(status, null, 2)); if (status === "SUCCESS") { log.info("Transaction was a success, navigating to success page"); - navigation.navigate("paymentResultScreen"); + navigation.getParent()?.navigate("paymentResultScreen"); } else if (status === "FAILED") { log.warn("Transaction was a failed, navigating to error page"); } else if (status === "INITIATED") {