Fix accidental unwrapped strings (#1826)
parent
d715246e26
commit
a4baf14e4b
|
@ -51,14 +51,14 @@ export const ExternalEmbed = ({
|
||||||
{link.meta.description}
|
{link.meta.description}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{!!link.meta?.error && (
|
{link.meta?.error ? (
|
||||||
<Text
|
<Text
|
||||||
type="sm"
|
type="sm"
|
||||||
numberOfLines={2}
|
numberOfLines={2}
|
||||||
style={[{color: palError.colors.background}, styles.description]}>
|
style={[{color: palError.colors.background}, styles.description]}>
|
||||||
{link.meta.error}
|
{link.meta.error}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.removeBtn}
|
style={styles.removeBtn}
|
||||||
|
|
|
@ -484,13 +484,13 @@ function CustomHandleForm({
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
{error && (
|
{error ? (
|
||||||
<View style={[styles.message, palError.view]}>
|
<View style={[styles.message, palError.view]}>
|
||||||
<Text type="md-medium" style={palError.text}>
|
<Text type="md-medium" style={palError.text}>
|
||||||
{error}
|
{error}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
) : null}
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
style={[s.p20, isVerifying && styles.dimmed]}
|
style={[s.p20, isVerifying && styles.dimmed]}
|
||||||
|
|
|
@ -284,13 +284,13 @@ function SavedFeed({feed}: {feed: FeedSourceModel}) {
|
||||||
<Text type="lg-medium" style={pal.text} numberOfLines={1}>
|
<Text type="lg-medium" style={pal.text} numberOfLines={1}>
|
||||||
{feed.displayName}
|
{feed.displayName}
|
||||||
</Text>
|
</Text>
|
||||||
{feed.error && (
|
{feed.error ? (
|
||||||
<View style={[styles.offlineSlug, pal.borderDark]}>
|
<View style={[styles.offlineSlug, pal.borderDark]}>
|
||||||
<Text type="xs" style={pal.textLight}>
|
<Text type="xs" style={pal.textLight}>
|
||||||
Feed offline
|
Feed offline
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
{isMobile && (
|
{isMobile && (
|
||||||
<FontAwesomeIcon
|
<FontAwesomeIcon
|
||||||
|
|
|
@ -250,7 +250,7 @@ export const ProfileListScreenInner = observer(
|
||||||
return (
|
return (
|
||||||
<CenteredView sideBorders style={s.hContentRegion}>
|
<CenteredView sideBorders style={s.hContentRegion}>
|
||||||
<Header rkey={rkey} list={list} />
|
<Header rkey={rkey} list={list} />
|
||||||
{list.error && <ErrorScreen error={list.error} />}
|
{list.error ? <ErrorScreen error={list.error} /> : null}
|
||||||
</CenteredView>
|
</CenteredView>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue