Don't show warning when sharing your own post in PWI opt-out mode (#4495)
This commit is contained in:
parent
4e4a7bf18f
commit
99078bbff2
3 changed files with 15 additions and 7 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue