[FIX] Empty mentions for @all and @here when real name is enabled (#1822)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-03-04 10:52:13 -03:00 committed by GitHub
parent d1c6306609
commit e677c19ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ const AtMention = React.memo(({
style={[mentionStyle, ...style]}
onPress={handlePress}
>
{useRealName ? user.name : user.username}
{useRealName && user.name ? user.name : user.username}
</Text>
);
}