1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix Sentry errors

This commit is contained in:
xmflsct
2022-12-16 22:00:22 +01:00
parent 44aff1f283
commit 3691b19a87
19 changed files with 85 additions and 74 deletions

View File

@ -7,9 +7,8 @@ import { ComposeState } from './types'
const assignVisibility = (
target: ComposeState['visibility']
): Pick<ComposeState, 'visibility' | 'visibilityLock'> => {
const accountPreference = getInstanceAccount(store.getState())?.preferences[
'posting:default:visibility'
]
const accountPreference =
getInstanceAccount(store.getState())?.preferences?.['posting:default:visibility'] || 'public'
switch (target) {
case 'direct':