From a688573dd89707ebde309bfd4fd28d20a5ebfbde Mon Sep 17 00:00:00 2001 From: ndittren <36773036+ndittren@users.noreply.github.com> Date: Thu, 6 Feb 2025 14:46:03 -0500 Subject: [PATCH] Fix scroll --- .../src/simulations/simulation1/nullHypothesisSection.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/media/js/src/simulations/simulation1/nullHypothesisSection.jsx b/media/js/src/simulations/simulation1/nullHypothesisSection.jsx index 2702015d..b6fa52b9 100644 --- a/media/js/src/simulations/simulation1/nullHypothesisSection.jsx +++ b/media/js/src/simulations/simulation1/nullHypothesisSection.jsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import { Katex } from '../../utils/katexComponent'; import PropTypes from 'prop-types'; @@ -8,12 +8,6 @@ export const NullHypothesisSection = ({ tvalue3d, startQuiz2 }) => { - useEffect(() => { - document.getElementById('null-hypothesis') - .scrollIntoView({ behavior: 'smooth' }); - - }, [plotType]); - const tEquation = 't = \\cfrac{\\hat{\\beta}_1 - \\beta_1}{SE(\\hat{\\beta_1})}';