about summary refs log tree commit diff
path: root/src/view/com/post/Post.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-11-17 17:31:26 +0000
committerGitHub <noreply@github.com>2023-11-17 09:31:26 -0800
commitc858b583072d7858f50ee0d56bb76dbce5a9c13d (patch)
tree6fa7e969abc71b1b21c7586856bf013b8a3a96c8 /src/view/com/post/Post.tsx
parent9c8a1b8a3118f6a6994a3c6cf8e5b70ef10049ab (diff)
downloadvoidsky-c858b583072d7858f50ee0d56bb76dbce5a9c13d.tar.zst
Do less work (#1953)
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r--src/view/com/post/Post.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index a2a0e62e6..00dd4419f 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -99,7 +99,7 @@ function PostInner({
   const pal = usePalette('default')
   const {openComposer} = useComposerControls()
   const [limitLines, setLimitLines] = useState(
-    countLines(richText?.text) >= MAX_POST_LINES,
+    () => countLines(richText?.text) >= MAX_POST_LINES,
   )
   const itemUrip = new AtUri(post.uri)
   const itemHref = makeProfileLink(post.author, 'post', itemUrip.rkey)