From 9ea7b2018596ab0c183775ceacefc23eb30cd404 Mon Sep 17 00:00:00 2001 From: Danh Date: Fri, 22 Sep 2023 16:08:02 +0700 Subject: [PATCH] prevent default --- src/pages/Oauth/AuthForm/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/Oauth/AuthForm/index.tsx b/src/pages/Oauth/AuthForm/index.tsx index e0ec139795..cfa90c9bac 100644 --- a/src/pages/Oauth/AuthForm/index.tsx +++ b/src/pages/Oauth/AuthForm/index.tsx @@ -62,7 +62,14 @@ const AuthForm: React.FC = ({ {showEth && ( {showBtnCancel && ( - navigateToUrl(back_uri)} height={'36px'}> + { + e.preventDefault() + navigateToUrl(back_uri) + }} + height={'36px'} + > Cancel )}