Merge pull request #4604 from urbit/mp/hark/calm

hark-fe: use calmengine for nickname render
This commit is contained in:
matildepark 2021-03-13 13:20:50 -05:00 committed by GitHub
commit c27b30e29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ function Author(props: { patp: string; last?: boolean }): ReactElement {
const contact: Contact | undefined = contacts?.[`~${props.patp}`];
const showNickname = useShowNickname(contact);
const name = contact?.nickname || `~${props.patp}`;
const name = showNickname ? contact.nickname : `~${props.patp}`;
return (
<Text mono={!showNickname}>