We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d31ebb commit edf3089Copy full SHA for edf3089
web/components/bio/profile-bio.tsx
@@ -18,15 +18,15 @@ export function ProfileBio(props: {
18
const editor = useTextEditor({defaultValue: ''})
19
const [textLength, setTextLength] = useState(MAX_INT)
20
21
- if (!isCurrentUser && !profile.bio) return null
22
- if (fromProfilePage && !profile.bio) return null
23
-
24
useEffect(() => {
25
if (!editor) return
26
editor.commands.setContent(profile.bio as JSONContent)
27
setTextLength(editor.getText().length)
28
}, [profile.bio, editor])
29
+ if (!isCurrentUser && !profile.bio) return null
+ if (fromProfilePage && !profile.bio) return null
+
30
return (
31
<Col>
32
{textLength < MIN_BIO_LENGTH && !edit && (
0 commit comments