From 79df03de49c95b82a3020a4fe28b3b96e13ef11c Mon Sep 17 00:00:00 2001 From: Om Ray <38233712+om-ray@users.noreply.github.com> Date: Fri, 21 Oct 2022 15:59:14 -0400 Subject: [PATCH] Profile dropdown menu will close after avatar is clicked (#5136) Co-authored-by: alannnc Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/ui/v2/core/Shell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsx index c07fb6f460..fc79eddc3d 100644 --- a/packages/ui/v2/core/Shell.tsx +++ b/packages/ui/v2/core/Shell.tsx @@ -238,7 +238,7 @@ function UserDropdown({ small }: { small?: boolean }) { } return ( - setMenuOpen(true)}> + setMenuOpen((menuOpen) => !menuOpen)}>