Spaces:
Sleeping
Sleeping
Commit ·
5440fdf
1
Parent(s): 161d4b0
Fix: still fixing same bug for eye gaze
Browse files
src/components/FocusPageLocal.jsx
CHANGED
|
@@ -110,9 +110,7 @@ function FocusPageLocal({ videoManager, sessionResult, setSessionResult, isActiv
|
|
| 110 |
const [l2csBoost, setL2csBoost] = useState(false);
|
| 111 |
const [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);
|
| 112 |
const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);
|
| 113 |
-
const [eyeGazeDontShow, setEyeGazeDontShow] = useState(
|
| 114 |
-
() => sessionStorage.getItem('focusguard_eyegaze_skipmodal') === 'false'
|
| 115 |
-
);
|
| 116 |
|
| 117 |
const localVideoRef = useRef(null);
|
| 118 |
const displayCanvasRef = useRef(null);
|
|
@@ -349,9 +347,6 @@ function FocusPageLocal({ videoManager, sessionResult, setSessionResult, isActiv
|
|
| 349 |
};
|
| 350 |
|
| 351 |
const handleEyeGazeModalAction = async (withCalibration) => {
|
| 352 |
-
if (eyeGazeDontShow) {
|
| 353 |
-
sessionStorage.setItem('focusguard_eyegaze_skipmodal', 'true');
|
| 354 |
-
}
|
| 355 |
setShowEyeGazeModal(false);
|
| 356 |
await applyEyeGazeChange(true, withCalibration);
|
| 357 |
};
|
|
|
|
| 110 |
const [l2csBoost, setL2csBoost] = useState(false);
|
| 111 |
const [l2csBoostAvailable, setL2csBoostAvailable] = useState(false);
|
| 112 |
const [showEyeGazeModal, setShowEyeGazeModal] = useState(false);
|
| 113 |
+
const [eyeGazeDontShow, setEyeGazeDontShow] = useState(false);
|
|
|
|
|
|
|
| 114 |
|
| 115 |
const localVideoRef = useRef(null);
|
| 116 |
const displayCanvasRef = useRef(null);
|
|
|
|
| 347 |
};
|
| 348 |
|
| 349 |
const handleEyeGazeModalAction = async (withCalibration) => {
|
|
|
|
|
|
|
|
|
|
| 350 |
setShowEyeGazeModal(false);
|
| 351 |
await applyEyeGazeChange(true, withCalibration);
|
| 352 |
};
|