1
0
mirror of https://github.com/tooot-app/app synced 2025-01-11 00:44:56 +01:00
This commit is contained in:
Zhiyuan Zheng 2022-06-19 12:51:44 +02:00
parent 544910f0ed
commit 24d179eee7
2 changed files with 2 additions and 2 deletions

View File

@ -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({

View File

@ -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[] = [