mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 01:01:37 +03:00
Merge pull request #4604 from urbit/mp/hark/calm
hark-fe: use calmengine for nickname render
This commit is contained in:
commit
c27b30e29d
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user