From 9d48d1ec19e86cde7c3a6c1b46fee86801f7fb6f Mon Sep 17 00:00:00 2001 From: Kirstie <39728053+epixieme@users.noreply.github.com> Date: Mon, 13 May 2024 18:21:17 +0100 Subject: [PATCH] clean up --- src/features/conversations/components/ConversationRating.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/features/conversations/components/ConversationRating.tsx b/src/features/conversations/components/ConversationRating.tsx index 3a4caa6a..ea534809 100644 --- a/src/features/conversations/components/ConversationRating.tsx +++ b/src/features/conversations/components/ConversationRating.tsx @@ -17,11 +17,10 @@ function ConversationRating({ conversationId, conversationState, initialRating } function submitRating(newRating: number) { setRating(newRating); - // useEffect(() => { + if (conversationState === TConversationState.TopicsViewed) { updateConversation(conversationId, { state: TConversationState.RatingDone }); } - // }, [conversationState]); apiClient.putSingleConversation({ conversationId,