mirror of
https://github.com/tooot-app/app
synced 2025-01-11 00:44:56 +01:00
Fixed #344
This commit is contained in:
parent
544910f0ed
commit
24d179eee7
@ -29,7 +29,7 @@ const contextMenuInstance = ({
|
||||
const { theme } = useTheme()
|
||||
|
||||
const currentInstance = useSelector(getInstanceUrl)
|
||||
const instance = status.uri && status.uri.split(new RegExp(/\/\/(.*?)\//))[1]
|
||||
const instance = status?.uri && status.uri.split(new RegExp(/\/\/(.*?)\//))[1]
|
||||
|
||||
const queryClient = useQueryClient()
|
||||
const mutation = useTimelineMutation({
|
||||
|
@ -70,7 +70,7 @@ const contextMenuStatus = ({
|
||||
getInstanceAccount,
|
||||
(prev, next) => prev.id === next.id
|
||||
)
|
||||
const ownAccount = instanceAccount?.id === status.account.id
|
||||
const ownAccount = instanceAccount?.id === status?.account.id
|
||||
|
||||
if (ownAccount) {
|
||||
const accountMenuItems: ContextMenuAction[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user