From 94bc5b9c48f7a29f5ce1f380a41ad8d0797808e5 Mon Sep 17 00:00:00 2001 From: G Date: Fri, 7 Jun 2024 12:15:48 +0000 Subject: [PATCH] should avoid closing the modal here since the whole execution is async. This close would have been executed without waiting --- src/hooks/useOrangeMoney.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useOrangeMoney.tsx b/src/hooks/useOrangeMoney.tsx index 76a4369..af8bad4 100644 --- a/src/hooks/useOrangeMoney.tsx +++ b/src/hooks/useOrangeMoney.tsx @@ -100,7 +100,7 @@ const useOrangeMoney = ( if (error instanceof Error) { if (error.name === "ORANGE_PAYMENT_IN_PROGRESS") { log.warn("openBrowserThenCheckStatus | ORANGE_PAYMENT_IN_PROGRESS"); - showModal( + await showModal(