diff --git a/src/components/node/NodeAuthorBlock/index.tsx b/src/components/node/NodeAuthorBlock/index.tsx index 4d89ae58..c4b97dc6 100644 --- a/src/components/node/NodeAuthorBlock/index.tsx +++ b/src/components/node/NodeAuthorBlock/index.tsx @@ -10,14 +10,18 @@ interface Props { } const NodeAuthorBlock: FC = ({ node }) => { + const randomPhrase = useRandomPhrase('USER_DESCRIPTION'); + + const onOpenProfile = useCallback(() => openUserProfile(node?.user?.username), [ + node?.user?.username, + ]); + if (!node?.user) { return null; } const { fullname, username, description, photo } = node.user; - const onOpenProfile = useCallback(() => openUserProfile(username), [username]); - return (
@@ -25,11 +29,7 @@ const NodeAuthorBlock: FC = ({ node }) => {
{fullname || username}
- {description && ( -
- {description || useRandomPhrase('USER_DESCRIPTION')} -
- )} +
{description || randomPhrase}
);