fix: add parens to (index ?? -1)

This commit is contained in:
James Xylight committed 2025-08-05 13:01:36 -07:00
1 parent e8cea7e6ff
commit a3548b34e1
1 file changed
+1 -1
@@ -59,7 +59,7 @@ function findInFeed(
i => i.post.id == postId,
)
if (index ?? -1 == -1) return
if ((index ?? -1) == -1) return
return {
post_view: postFeeds.value[feedId]?.data.posts.posts[index],