Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 1e18101

Browse files
committed
Removed leftover console log. Reset textarea on close popup
1 parent e5403a6 commit 1e18101

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ReportPopup/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ function ReportPopup() {
2525
setIsLoading(true);
2626

2727
postReport(teamName, teamId, textVal, memberHandle)
28-
.then((res) => {
29-
console.log(res);
28+
.then(() => {
3029
setIsLoading(false);
3130
closeModal();
3231
toastr.success("Report submitted successfully");
@@ -50,6 +49,7 @@ function ReportPopup() {
5049

5150
const closeModal = useCallback(() => {
5251
dispatch(closeReport());
52+
setTextVal("");
5353
}, [dispatch]);
5454

5555
return (

0 commit comments

Comments
 (0)