Remove other window ref
This commit is contained in:
parent
356db47760
commit
ad7e3a46be
|
@ -350,9 +350,7 @@ function OpenChallengeContent(props: {
|
||||||
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
const [containerRef, setContainerRef] = useState<HTMLDivElement | null>(null)
|
||||||
const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0
|
const bottomBarHeight = (width ?? 0) < 1024 ? 58 : 0
|
||||||
const remainingHeight =
|
const remainingHeight =
|
||||||
(height ?? window.innerHeight) -
|
(height ?? 0) - (containerRef?.offsetTop ?? 0) - bottomBarHeight
|
||||||
(containerRef?.offsetTop ?? 0) -
|
|
||||||
bottomBarHeight
|
|
||||||
|
|
||||||
const isBinary = contract.outcomeType === 'BINARY'
|
const isBinary = contract.outcomeType === 'BINARY'
|
||||||
const isPseudoNumeric = contract.outcomeType === 'PSEUDO_NUMERIC'
|
const isPseudoNumeric = contract.outcomeType === 'PSEUDO_NUMERIC'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user