Commit 94bc5b9c by G

should avoid closing the modal here since the whole execution is async. This…

should avoid closing the modal here since the whole execution is async. This close would have been executed without waiting
parent 87b9bf7f
...@@ -100,7 +100,7 @@ const useOrangeMoney = ( ...@@ -100,7 +100,7 @@ const useOrangeMoney = (
if (error instanceof Error) { if (error instanceof Error) {
if (error.name === "ORANGE_PAYMENT_IN_PROGRESS") { if (error.name === "ORANGE_PAYMENT_IN_PROGRESS") {
log.warn("openBrowserThenCheckStatus | ORANGE_PAYMENT_IN_PROGRESS"); log.warn("openBrowserThenCheckStatus | ORANGE_PAYMENT_IN_PROGRESS");
showModal( await showModal(
<InformationModal <InformationModal
message="Le payment est toujours en cours." message="Le payment est toujours en cours."
actionLabel="Rééssayer" actionLabel="Rééssayer"
...@@ -131,7 +131,7 @@ const useOrangeMoney = ( ...@@ -131,7 +131,7 @@ const useOrangeMoney = (
log.error("makePayment |", error); log.error("makePayment |", error);
throw error; throw error;
} finally { } finally {
closeModal(); // just to be ultra sure that the modal is closed //closeModal(); // just to be ultra sure that the modal is closed
} }
}; };
......
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