From 6fbe6337d101997a8cb9f5dd89188b4bec38fa36 Mon Sep 17 00:00:00 2001 From: gitwoz <177856586+gitwoz@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:28:21 +0700 Subject: [PATCH] feat(vault): no need to close dialog if "submitCallback" is provided --- src/components/Forms/WalletAuthForm/Connect.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Forms/WalletAuthForm/Connect.tsx b/src/components/Forms/WalletAuthForm/Connect.tsx index ac5dc890a5..41f7297c4e 100644 --- a/src/components/Forms/WalletAuthForm/Connect.tsx +++ b/src/components/Forms/WalletAuthForm/Connect.tsx @@ -255,9 +255,7 @@ const Connect: React.FC = ({ if (submitCallback) { submitCallback() - } - - if (closeDialog) { + } else if (closeDialog) { closeDialog() } }