about summary refs log tree commit diff
path: root/src/view/com/profile/ProfileMenu.tsx
diff options
context:
space:
mode:
authorKuwa Lee <kuwalee1069@gmail.com>2024-06-13 03:00:02 +0800
committerGitHub <noreply@github.com>2024-06-13 03:00:02 +0800
commitbd8f0e5a1c3a49b3f134081475f90473b87111b1 (patch)
treea3f119cf7de018bea5b81bd28d3480dfac33c46d /src/view/com/profile/ProfileMenu.tsx
parent004b4e39698909e5a645fb1c28dcee45cc80ea15 (diff)
parent99078bbff2282ad18594a4d5a4ed5fe207c394e4 (diff)
downloadvoidsky-bd8f0e5a1c3a49b3f134081475f90473b87111b1.tar.zst
Merge branch 'bluesky-social:main' into zh
Diffstat (limited to 'src/view/com/profile/ProfileMenu.tsx')
-rw-r--r--src/view/com/profile/ProfileMenu.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx
index 5d39e5f0f..efc249760 100644
--- a/src/view/com/profile/ProfileMenu.tsx
+++ b/src/view/com/profile/ProfileMenu.tsx
@@ -71,8 +71,11 @@ let ProfileMenu = ({
   const loggedOutWarningPromptControl = Prompt.usePromptControl()
 
   const showLoggedOutWarning = React.useMemo(() => {
-    return !!profile.labels?.find(label => label.val === '!no-unauthenticated')
-  }, [profile.labels])
+    return (
+      profile.did !== currentAccount?.did &&
+      !!profile.labels?.find(label => label.val === '!no-unauthenticated')
+    )
+  }, [currentAccount, profile])
 
   const invalidateProfileQuery = React.useCallback(() => {
     queryClient.invalidateQueries({