Always fallback from displayName to handle

This commit is contained in:
Paul Frazee 2022-11-14 13:39:10 -06:00
parent 12ac6fe52e
commit fb3ca42646
7 changed files with 18 additions and 8 deletions

View file

@ -102,7 +102,9 @@ export const Post = observer(function Post({uri}: {uri: string}) {
<View style={styles.layoutContent}>
<View style={styles.meta}>
<Link style={styles.metaItem} href={authorHref} title={authorTitle}>
<Text style={[s.f16, s.bold]}>{item.author.displayName}</Text>
<Text style={[s.f16, s.bold]}>
{item.author.displayName || item.author.handle}
</Text>
</Link>
<Link style={styles.metaItem} href={authorHref} title={authorTitle}>
<Text style={[s.f15, s.gray5]}>@{item.author.handle}</Text>