From ee2ffb8a531c609ef4b8e188a8e3b34538e336af Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Wed, 6 Mar 2024 01:44:37 +0700 Subject: [PATCH] Close modal after redirect --- src/components/profile-selector/MyAccountMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/profile-selector/MyAccountMenu.tsx b/src/components/profile-selector/MyAccountMenu.tsx index df3b9f8d4..11fccdaa4 100644 --- a/src/components/profile-selector/MyAccountMenu.tsx +++ b/src/components/profile-selector/MyAccountMenu.tsx @@ -86,6 +86,7 @@ export const AccountMenu: React.FunctionComponent = ({ address, ow setIsOpenProfileModal(false) } else if (name === 'redirect') { router.push(value) + setIsOpenProfileModal(false) } } }, [])