From 8a03bb4b827b96ee13824a721effd01162b10632 Mon Sep 17 00:00:00 2001 From: shahid Date: Tue, 3 Dec 2024 19:26:28 +0530 Subject: [PATCH] Allow resending magic code by resetting state on modal close --- src/components/ValidateCodeActionModal/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ValidateCodeActionModal/index.tsx b/src/components/ValidateCodeActionModal/index.tsx index f2063f7926f4..b3b14927035a 100644 --- a/src/components/ValidateCodeActionModal/index.tsx +++ b/src/components/ValidateCodeActionModal/index.tsx @@ -40,6 +40,7 @@ function ValidateCodeActionModal({ const hide = useCallback(() => { clearError(); onClose?.(); + firstRenderRef.current = true; }, [onClose, clearError]); useEffect(() => {