From 4c6d067cb9866e187c147d5517ef5f98c8f54879 Mon Sep 17 00:00:00 2001 From: bsu3338 Date: Sun, 3 Sep 2023 22:24:29 -0500 Subject: [PATCH] Update HoverButtons.tsx --- client/src/components/Messages/HoverButtons.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/Messages/HoverButtons.tsx b/client/src/components/Messages/HoverButtons.tsx index db239c537b..06d3d2c259 100644 --- a/client/src/components/Messages/HoverButtons.tsx +++ b/client/src/components/Messages/HoverButtons.tsx @@ -53,6 +53,7 @@ export default function HoverButtons({ const toggleSpeech = () => { if (isSpeaking) { cancelSpeech(); + setIsSpeaking(!isSpeaking); } else { synthesizeSpeech(message?.text ?? ""); }