From 35af090c85b905727081763412f0eb437ff5c420 Mon Sep 17 00:00:00 2001 From: G Date: Fri, 24 May 2024 11:28:27 +0000 Subject: [PATCH] navigate to the paymentResultScreen --- src/screens/PaymentAmountInputScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") { -- libgit2 0.27.1