added back parseInt

This commit is contained in:
Ethan Weber committed 2022-09-13 23:33:27 +00:00
1 parent cc3c42e215
commit 26f7c5ddd3
1 file changed
+2 -2
@@ -517,7 +517,7 @@ export default function CameraPanel(props) {
onBlur={(e) => {
if (e.target.validity.valid) {
if (e.target.value !== '') {
setSeconds(e.target.value);
setSeconds(parseInt(e.target.value, 10));
} else {
setUISeconds(seconds);
}
@@ -540,7 +540,7 @@ export default function CameraPanel(props) {
onBlur={(e) => {
if (e.target.validity.valid) {
if (e.target.value !== '') {
setFps(e.target.value);
setFps(parseInt(e.target.value, 10));
} else {
setUIfps(fps);
}