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

@ -31,10 +31,10 @@ const TimelineAttachment = () => {
const account = useSelector(
getInstanceAccount,
(prev, next) =>
prev.preferences['reading:expand:media'] === next.preferences['reading:expand:media']
prev.preferences?.['reading:expand:media'] === next.preferences?.['reading:expand:media']
)
const defaultSensitive = () => {
switch (account.preferences['reading:expand:media']) {
switch (account.preferences?.['reading:expand:media']) {
case 'show_all':
return false
case 'hide_all':