fix: add parens around nullish coalescing in PostDetailDialog (build error)

This commit is contained in:
admin committed 2026-06-27 07:36:42 +02:00
1 parent 58e2840fae
commit 8deede7235
1 file changed
+1 -1
+1 -1
View File
@@ -121,7 +121,7 @@ export function PostDetailDialog({ post, open, onClose, onDeleted }: PostDetailD
setTimeout(() => commentsEndRef.current?.scrollIntoView({ behavior: "smooth" }), 150);
},
onError: () => {
setBody((prev) => prev || pendingBody ?? "");
setBody((prev) => prev || (pendingBody ?? ""));
setPendingBody(null);
toast.error(tc("postError"));
},