Commit 35af090c by G

navigate to the paymentResultScreen

parent 8dc74377
......@@ -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") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment