Skip to content

Commit edf3089

Browse files
committed
Fix effect
1 parent 3d31ebb commit edf3089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/components/bio/profile-bio.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ export function ProfileBio(props: {
1818
const editor = useTextEditor({defaultValue: ''})
1919
const [textLength, setTextLength] = useState(MAX_INT)
2020

21-
if (!isCurrentUser && !profile.bio) return null
22-
if (fromProfilePage && !profile.bio) return null
23-
2421
useEffect(() => {
2522
if (!editor) return
2623
editor.commands.setContent(profile.bio as JSONContent)
2724
setTextLength(editor.getText().length)
2825
}, [profile.bio, editor])
2926

27+
if (!isCurrentUser && !profile.bio) return null
28+
if (fromProfilePage && !profile.bio) return null
29+
3030
return (
3131
<Col>
3232
{textLength < MIN_BIO_LENGTH && !edit && (

0 commit comments

Comments
 (0)