Skip to content

Commit a688573

Browse files
committed
Fix scroll
1 parent 1bcf37a commit a688573

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

media/js/src/simulations/simulation1/nullHypothesisSection.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from 'react';
1+
import React from 'react';
22
import { Katex } from '../../utils/katexComponent';
33
import PropTypes from 'prop-types';
44

@@ -8,12 +8,6 @@ export const NullHypothesisSection = ({
88
tvalue3d, startQuiz2
99
}) => {
1010

11-
useEffect(() => {
12-
document.getElementById('null-hypothesis')
13-
.scrollIntoView({ behavior: 'smooth' });
14-
15-
}, [plotType]);
16-
1711
const tEquation =
1812
't = \\cfrac{\\hat{\\beta}_1 - \\beta_1}{SE(\\hat{\\beta_1})}';
1913

0 commit comments

Comments
 (0)