From b7b1aa2d2fedd7fd61ed5aa618413f2016709774 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 15 Sep 2024 08:32:47 +0900 Subject: [PATCH] [Chore] Receive routes: Volume Check: Adjust the receive data format from python and put the data to update store function directly. --- src-ui/logics/useReceiveRoutes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-ui/logics/useReceiveRoutes.js b/src-ui/logics/useReceiveRoutes.js index acc543ba..6485513d 100644 --- a/src-ui/logics/useReceiveRoutes.js +++ b/src-ui/logics/useReceiveRoutes.js @@ -87,10 +87,10 @@ export const useReceiveRoutes = () => { "/action/check_mic_threshold_energy": updateVolumeVariable_Mic, "/action/check_speaker_threshold_energy": updateVolumeVariable_Speaker, - "/controller/callback_enable_check_mic_threshold": () => updateMicThresholdCheckStatus(true), - "/controller/callback_disable_check_mic_threshold": () => updateMicThresholdCheckStatus(false), - "/controller/callback_enable_check_speaker_threshold": () => updateSpeakerThresholdCheckStatus(true), - "/controller/callback_disable_check_speaker_threshold": () => updateSpeakerThresholdCheckStatus(false), + "/controller/callback_enable_check_mic_threshold": updateMicThresholdCheckStatus, + "/controller/callback_disable_check_mic_threshold": updateMicThresholdCheckStatus, + "/controller/callback_enable_check_speaker_threshold": updateSpeakerThresholdCheckStatus, + "/controller/callback_disable_check_speaker_threshold": updateSpeakerThresholdCheckStatus, "/config/enable_auto_clear_message_box": updateEnableAutoClearMessageBox, "/controller/callback_enable_auto_clear_chatbox": updateEnableAutoClearMessageBox,