diff --git a/frontend/app/components/shared/XRayButton/XRayButton.tsx b/frontend/app/components/shared/XRayButton/XRayButton.tsx index 4c27014f8..9c088f9f6 100644 --- a/frontend/app/components/shared/XRayButton/XRayButton.tsx +++ b/frontend/app/components/shared/XRayButton/XRayButton.tsx @@ -4,6 +4,7 @@ import cn from 'classnames'; import { Popup } from 'UI'; import GuidePopup, { FEATURE_KEYS } from 'Shared/GuidePopup'; import { Controls as Player } from 'Player'; +import { INDEXES } from 'App/constants/zIndex'; interface Props { onClick?: () => void; @@ -45,7 +46,7 @@ function XRayButton(props: Props) { @@ -53,7 +54,7 @@ function XRayButton(props: Props) {
{ + const allIndexes = Object.values(INDEXES) + return allIndexes[allIndexes.length - 1] + 1 +}