From ea3e748684615ef003184c53703630683e626a3d Mon Sep 17 00:00:00 2001 From: zain_arif Date: Thu, 19 Mar 2026 11:03:04 +0700 Subject: [PATCH] fix(api): add asyn await for the effect --- src/pages/webControl/IndexWebControl.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/webControl/IndexWebControl.jsx b/src/pages/webControl/IndexWebControl.jsx index bfd119a..baeec2f 100644 --- a/src/pages/webControl/IndexWebControl.jsx +++ b/src/pages/webControl/IndexWebControl.jsx @@ -15,9 +15,10 @@ const IndexWebControl = memo(function IndexWebControl() { const url = "https://117.102.231.130:9531/qrview"; - const handleReset = () => { + const handleReset = async() => { setIsPlaying(false); - resetWA(); + await resetWA(); + setIsPlaying(true); }; useEffect(() => {