fix: add parens around nullish coalescing in PostDetailDialog (build error)
This commit is contained in:
1 parent
58e2840fae
commit
8deede7235
1 file changed
+1
-1
@@ -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"));
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user