mirror of
https://github.com/tooot-app/app
synced 2025-02-01 19:16:56 +01:00
Fix some Sentry reported crashes
This commit is contained in:
parent
18ad22302d
commit
74e794a215
@ -60,7 +60,7 @@ const Collections: React.FC = () => {
|
||||
title={t('screenTabs:me.stacks.favourites.name')}
|
||||
onPress={() => navigation.navigate('Tab-Me-Favourites')}
|
||||
/>
|
||||
{pageMe.lists?.shown ? (
|
||||
{pageMe?.lists?.shown ? (
|
||||
<MenuRow
|
||||
iconFront='List'
|
||||
iconBack='ChevronRight'
|
||||
@ -68,7 +68,7 @@ const Collections: React.FC = () => {
|
||||
onPress={() => navigation.navigate('Tab-Me-List-List')}
|
||||
/>
|
||||
) : null}
|
||||
{pageMe.followedTags?.shown ? (
|
||||
{pageMe?.followedTags?.shown ? (
|
||||
<MenuRow
|
||||
iconFront='Hash'
|
||||
iconBack='ChevronRight'
|
||||
@ -76,7 +76,7 @@ const Collections: React.FC = () => {
|
||||
onPress={() => navigation.navigate('Tab-Me-FollowedTags')}
|
||||
/>
|
||||
) : null}
|
||||
{pageMe.announcements?.shown ? (
|
||||
{pageMe?.announcements?.shown ? (
|
||||
<MenuRow
|
||||
iconFront='Clipboard'
|
||||
iconBack='ChevronRight'
|
||||
|
@ -1,6 +1,8 @@
|
||||
import * as htmlparser2 from 'htmlparser2'
|
||||
|
||||
const removeHTML = (text: string): string => {
|
||||
if (!text) return ''
|
||||
|
||||
let raw: string = ''
|
||||
|
||||
const parser = new htmlparser2.Parser({
|
||||
|
Loading…
x
Reference in New Issue
Block a user