From 4bdc579627aca5a2de44663e704c8076727fd29b Mon Sep 17 00:00:00 2001 From: Amir Ghezelbash Date: Thu, 19 Dec 2024 17:19:26 +0300 Subject: [PATCH] use object --- .../Modals/QualityFeedbackModal/QualityFeedbackModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/components/Modals/QualityFeedbackModal/QualityFeedbackModal.tsx b/src/script/components/Modals/QualityFeedbackModal/QualityFeedbackModal.tsx index c60d3dae8a5..cdbead07f4f 100644 --- a/src/script/components/Modals/QualityFeedbackModal/QualityFeedbackModal.tsx +++ b/src/script/components/Modals/QualityFeedbackModal/QualityFeedbackModal.tsx @@ -66,7 +66,7 @@ export const QualityFeedbackModal = () => { return null; } - const handleCloseModal = (skipNotification = false) => { + const handleCloseModal = ({skipNotification = false} = {}) => { if (!selfUser) { setQualityFeedbackModalShown(false); return; @@ -105,7 +105,7 @@ export const QualityFeedbackModal = () => { [Segmentation.CALL.QUALITY_REVIEW_LABEL]: RatingListLabel.DISMISSED, }); - handleCloseModal(true); + handleCloseModal({skipNotification: true}); }; return (