diff --git a/frontend/app/components/shared/XRayButton/XRayButton.tsx b/frontend/app/components/shared/XRayButton/XRayButton.tsx index 2b54e2d66..b50a5ecb2 100644 --- a/frontend/app/components/shared/XRayButton/XRayButton.tsx +++ b/frontend/app/components/shared/XRayButton/XRayButton.tsx @@ -13,6 +13,9 @@ function XRayButton(props: Props) { const { isActive } = props; const [showGuide, setShowGuide] = useState(!localStorage.getItem('featureViewed')); useEffect(() => { + if (!showGuide) { + return; + } Player.pause(); }, []); @@ -25,6 +28,10 @@ function XRayButton(props: Props) { <> {showGuide && (