From 63f77c0c3eb7345a9bf27cdd01a7cf1a5fcee2a9 Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 28 Jun 2022 14:30:49 +0200 Subject: [PATCH] fix(ui): fix capture rate --- .../shared/SessionSettings/components/CaptureRate.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx index 559163d7a..6df86a593 100644 --- a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx +++ b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx @@ -20,7 +20,7 @@ function CaptureRate(props) { const toggleRate = () => { if (captureAll === false) { - settingsStore.saveCaptureRate({ captureAll: true }) + settingsStore.saveCaptureRate({ captureAll: true, rate: "100" }) } setCaptureAll(!captureAll) setChanged(true) @@ -45,8 +45,9 @@ function CaptureRate(props) { type="number" value={captureRate} style={{ height: '38px', width: '100px'}} - onChange={(e, { value }) => { - setCaptureRate(value) + // htmn input event + onChange={(e) => { + setCaptureRate(e.target.value) setChanged(true); }} disabled={captureAll}