diff options
Diffstat (limited to 'src/view/com/profile/ProfileMenu.tsx')
-rw-r--r-- | src/view/com/profile/ProfileMenu.tsx | 7 |
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({ |