Remove other window ref

This commit is contained in:
Ian Philips 2022-07-26 17:38:36 -07:00
parent 356db47760
commit ad7e3a46be

View File

@ -350,9 +350,7 @@ function OpenChallengeContent(props: {
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(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'