From 48c606c908225dfa323b89a02f477d9ee913ccf1 Mon Sep 17 00:00:00 2001 From: Limber Mamani Vallejos Date: Wed, 12 Jun 2024 17:30:13 -0400 Subject: [PATCH] fix props.refresh --- src/components/elements/CommentaryBox/CommentaryBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } });