mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-05 04:28:03 +03:00
search crash fix
This commit is contained in:
parent
86522f195a
commit
25efe6057b
@ -51,7 +51,7 @@ const UserListItem = ({
|
||||
<UserAvatar noAction={true} style={styles.avatar} username={username} />
|
||||
<View style={styles.userDescription}>
|
||||
{!searchValue && <Text style={styles.name}>{text || username}</Text>}
|
||||
{!!searchValue && (
|
||||
{!!searchValue && text && (
|
||||
<Highlighter
|
||||
highlightStyle={{ backgroundColor: 'yellow' }}
|
||||
searchWords={[searchValue]}
|
||||
@ -59,7 +59,7 @@ const UserListItem = ({
|
||||
style={styles.name}
|
||||
/>
|
||||
)}
|
||||
{!!searchValue && (
|
||||
{!!searchValue && description && (
|
||||
<Highlighter
|
||||
highlightStyle={{ backgroundColor: 'yellow' }}
|
||||
searchWords={[searchValue]}
|
||||
|
Loading…
Reference in New Issue
Block a user