diff --git a/src/components/elements/CommentaryBox/CommentaryBox.tsx b/src/components/elements/CommentaryBox/CommentaryBox.tsx index 52cd0bead..80c66b42c 100644 --- a/src/components/elements/CommentaryBox/CommentaryBox.tsx +++ b/src/components/elements/CommentaryBox/CommentaryBox.tsx @@ -52,7 +52,7 @@ const CommentaryBox = (props: CommentaryBoxProps) => { setComment(""); setError(""); setFiles([]); - props.refresh && props.refresh(); + props.refresh?.(); setLoading(false); } });