From ad7e3a46bee1b1317596853a67efe6aabc04e35f Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 26 Jul 2022 17:38:36 -0700 Subject: [PATCH] Remove other window ref --- .../challenges/[username]/[contractSlug]/[challengeSlug].tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx index 99430d33..443db25b 100644 --- a/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx +++ b/web/pages/challenges/[username]/[contractSlug]/[challengeSlug].tsx @@ -350,9 +350,7 @@ function OpenChallengeContent(props: { const [containerRef, setContainerRef] = useState(null) const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0 const remainingHeight = - (height ?? window.innerHeight) - - (containerRef?.offsetTop ?? 0) - - bottomBarHeight + (height ?? 0) - (containerRef?.offsetTop ?? 0) - bottomBarHeight const isBinary = contract.outcomeType === 'BINARY' const isPseudoNumeric = contract.outcomeType === 'PSEUDO_NUMERIC'